microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
packages/compiler/generated-defs/TypeSpec.ts-test.ts
15lines · modecode
| 1 | // An error in the imports would mean that the decorator is not exported or |
| 2 | // doesn't have the right name. |
| 3 | |
| 4 | import { $decorators, $functions } from "../src/index.js"; |
| 5 | import type { TypeSpecDecorators, TypeSpecFunctions } from "./TypeSpec.js"; |
| 6 | |
| 7 | /** |
| 8 | * An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ... |
| 9 | */ |
| 10 | const _decs: TypeSpecDecorators = $decorators["TypeSpec"]; |
| 11 | |
| 12 | /** |
| 13 | * An error here would mean that the exported function is not using the same signature. Make sure to have export const $funcName: FuncNameFunction = (...) => ... |
| 14 | */ |
| 15 | const _funcs: TypeSpecFunctions = $functions["TypeSpec"]; |
| 16 | |