microsoft/typespec
Publicmirrored from https://github.com/microsoft/typespecAvailable
packages/http/generated-defs/TypeSpec.Http.ts-test.ts
5lines · modecode
| 1 | /** An error here would mean that the decorator is not exported or doesn't have the right name. */ |
| 2 | import { $decorators } from "@typespec/http"; |
| 3 | import type { TypeSpecHttpDecorators } from "./TypeSpec.Http.js"; |
| 4 | /** An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ... */ |
| 5 | const _: TypeSpecHttpDecorators = $decorators["TypeSpec.Http"]; |
| 6 | |