// docs / installation

Installation

TypeSharp installation steps. The actual tool is installed in your dependant project which is your frontend your frontend usually.

1. Install attributes

Navigate to your C# backend project i.e. /CSharp/Project/MyApp.csproj, open in terminal and install TypeSharp controll attributes.

  dotnet add package TypeSharp.Attributes 

Or use GUI nugget package manager Installation using GUI

2. Install

Navigate to your frontend project (Vuejs or Reactjs). i.e. ./frontend-app/.

  npm install -D @siyavuyachagi/typesharp 

3. Use the output

Import the generated types directly in your Nuxt/Vue components:

import type { UserDto } from '~/types/UserDto'
    
    const user = ref<UserDto | null>(null)