···5 * These are not intended for direct use in user code.
6 */
7namespace Tylex.Private;
8-9-/**
10- * Internal decorator that marks the Blob model.
11- * This is applied automatically to the Blob model and should not be used directly.
12- *
13- * @param target The Blob model
14- */
15-extern dec blob(target: TypeSpec.Reflection.Model);
···5 * These are not intended for direct use in user code.
6 */
7namespace Tylex.Private;
00000000
-13
packages/emitter/src/decorators.ts
···11const maxGraphemesKey = Symbol("maxGraphemes");
12const minGraphemesKey = Symbol("minGraphemes");
13const recordKey = Symbol("record");
14-const blobKey = Symbol("blob");
15const requiredKey = Symbol("required");
16const readOnlyKey = Symbol("readOnly");
17const tokenKey = Symbol("token");
···138 target: Type,
139): string | undefined {
140 return program.stateMap(recordKey).get(target);
141-}
142-143-/**
144- * @blob private decorator for marking the Blob model
145- */
146-export function $blob(context: DecoratorContext, target: Type) {
147- // Mark this as a blob model
148- context.program.stateSet(blobKey).add(target);
149-}
150-151-export function isBlob(program: Program, target: Type): boolean {
152- return program.stateSet(blobKey).has(target);
153}
154155/**