microsoft/typespec

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/fix-diff-highlight-issue

Branches

Tags

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

Clone

HTTPS

Download ZIP

packages/compiler/generated-defs/TypeSpec.Prototypes.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
4import { $decorators } from "../src/index.js";
5import type { TypeSpecPrototypesDecorators } from "./TypeSpec.Prototypes.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: TypeSpecPrototypesDecorators = $decorators["TypeSpec.Prototypes"];
11