You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/extending-typespec/basics.md
+12-6
Original file line number
Diff line number
Diff line change
@@ -85,17 +85,23 @@ This will create `tsconfig.json`. But we need to make a couple changes to this.
85
85
86
86
### 4. Create `lib.ts`
87
87
88
-
Open `./src/lib.ts` and create your library definition that registers your library with the TypeSpec compiler and defines any diagnostics your library will emit. The following shows an example:
88
+
Open `./src/lib.ts` and create your library definition that registers your library with the TypeSpec compiler and defines any diagnostics your library will emit. Make sure to export the library definition as `$lib`.
89
+
90
+
:::warn
91
+
If `$lib` is not accessible from your library package (`import {$lib} from "my-library";`) some functionality will be unavailable like validation of emitter options, linter rules, etc.
0 commit comments