@formspec/analysis 0.1.0-alpha.20 → 0.1.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analysis.d.ts +69 -450
- package/dist/compiler-signatures.d.ts +48 -0
- package/dist/compiler-signatures.d.ts.map +1 -1
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/file-snapshots.d.ts +3 -0
- package/dist/file-snapshots.d.ts.map +1 -1
- package/dist/index.cjs +169 -2800
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +168 -2761
- package/dist/index.js.map +1 -1
- package/dist/internal.cjs +3995 -0
- package/dist/internal.cjs.map +1 -0
- package/dist/internal.d.ts +21 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +3902 -0
- package/dist/internal.js.map +1 -0
- package/dist/perf-tracing.d.ts +16 -0
- package/dist/perf-tracing.d.ts.map +1 -0
- package/dist/protocol.cjs +951 -0
- package/dist/protocol.cjs.map +1 -0
- package/dist/protocol.d.ts +4 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +904 -0
- package/dist/protocol.js.map +1 -0
- package/dist/semantic-protocol.d.ts +49 -1
- package/dist/semantic-protocol.d.ts.map +1 -1
- package/dist/tag-registry.d.ts +2 -0
- package/dist/tag-registry.d.ts.map +1 -1
- package/dist/workspace-runtime.d.ts +6 -0
- package/dist/workspace-runtime.d.ts.map +1 -1
- package/package.json +12 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type FormSpecPerformanceDetailValue = boolean | number | string;
|
|
2
|
+
export interface FormSpecPerformanceEvent {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly durationMs: number;
|
|
5
|
+
readonly detail?: Readonly<Record<string, FormSpecPerformanceDetailValue>>;
|
|
6
|
+
}
|
|
7
|
+
export interface FormSpecPerformanceRecorder {
|
|
8
|
+
readonly events: readonly FormSpecPerformanceEvent[];
|
|
9
|
+
measure<T>(name: string, detail: Readonly<Record<string, FormSpecPerformanceDetailValue>> | undefined, callback: () => T): T;
|
|
10
|
+
record(event: FormSpecPerformanceEvent): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const NOOP_FORMSPEC_PERFORMANCE_RECORDER: FormSpecPerformanceRecorder;
|
|
13
|
+
export declare function createFormSpecPerformanceRecorder(): FormSpecPerformanceRecorder;
|
|
14
|
+
export declare function getFormSpecPerformanceNow(): number;
|
|
15
|
+
export declare function optionalMeasure<T>(recorder: FormSpecPerformanceRecorder | undefined, name: string, detail: Readonly<Record<string, FormSpecPerformanceDetailValue>> | undefined, callback: () => T): T;
|
|
16
|
+
//# sourceMappingURL=perf-tracing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"perf-tracing.d.ts","sourceRoot":"","sources":["../src/perf-tracing.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC,CAAC;CAC5E;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,MAAM,EAAE,SAAS,wBAAwB,EAAE,CAAC;IACrD,OAAO,CAAC,CAAC,EACP,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC,GAAG,SAAS,EAC5E,QAAQ,EAAE,MAAM,CAAC,GAChB,CAAC,CAAC;IACL,MAAM,CAAC,KAAK,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC/C;AAuDD,eAAO,MAAM,kCAAkC,EAAE,2BACN,CAAC;AAE5C,wBAAgB,iCAAiC,IAAI,2BAA2B,CAE/E;AAED,wBAAgB,yBAAyB,IAAI,MAAM,CAElD;AAED,wBAAgB,eAAe,CAAC,CAAC,EAC/B,QAAQ,EAAE,2BAA2B,GAAG,SAAS,EACjD,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC,GAAG,SAAS,EAC5E,QAAQ,EAAE,MAAM,CAAC,GAChB,CAAC,CAEH"}
|