microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
packages/compiler/generated-defs/TypeSpec.ts-test.ts
10lines · 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 } from "../src/index.js"; |
| 5 | import type { TypeSpecDecorators } 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 _: TypeSpecDecorators = $decorators["TypeSpec"]; |
| 11 | |