microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/add-max-overloads-with-models

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

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
4import { $decorators, $functions } from "../src/index.js";
5import 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 */
10const _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 */
15const _funcs: TypeSpecFunctions = $functions["TypeSpec"];
16