modality-kit 0.1.17 → 0.1.18

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/index.js CHANGED
@@ -255,6 +255,8 @@ function withErrorHandling(fn, operation) {
255
255
  // src/symbol_type.ts
256
256
  var exports_symbol_type = {};
257
257
  __export(exports_symbol_type, {
258
+ symbolKinds: () => symbolKinds,
259
+ symbolKindSchema: () => symbolKindSchema,
258
260
  rangeSchema: () => rangeSchema
259
261
  });
260
262
 
@@ -4236,6 +4238,35 @@ var positionSchema = exports_external.object({
4236
4238
  line: exports_external.number().min(1),
4237
4239
  col: exports_external.number().min(1)
4238
4240
  });
4241
+ var symbolKinds = [
4242
+ "File",
4243
+ "Module",
4244
+ "Namespace",
4245
+ "Package",
4246
+ "Class",
4247
+ "Method",
4248
+ "Property",
4249
+ "Field",
4250
+ "Constructor",
4251
+ "Enum",
4252
+ "Interface",
4253
+ "Function",
4254
+ "Variable",
4255
+ "Constant",
4256
+ "String",
4257
+ "Number",
4258
+ "Boolean",
4259
+ "Array",
4260
+ "Object",
4261
+ "Key",
4262
+ "Null",
4263
+ "EnumMember",
4264
+ "Struct",
4265
+ "Event",
4266
+ "Operator",
4267
+ "TypeParameter"
4268
+ ];
4269
+ var symbolKindSchema = exports_external.enum(symbolKinds).describe("Symbol kinds enumeration");
4239
4270
  var rangeSchema = exports_external.object({
4240
4271
  start: positionSchema,
4241
4272
  end: positionSchema
@@ -9,6 +9,9 @@ declare const positionSchema: z.ZodObject<{
9
9
  line: number;
10
10
  col: number;
11
11
  }>;
12
+ export declare const symbolKinds: readonly ["File", "Module", "Namespace", "Package", "Class", "Method", "Property", "Field", "Constructor", "Enum", "Interface", "Function", "Variable", "Constant", "String", "Number", "Boolean", "Array", "Object", "Key", "Null", "EnumMember", "Struct", "Event", "Operator", "TypeParameter"];
13
+ export declare const symbolKindSchema: z.ZodEnum<["File", "Module", "Namespace", "Package", "Class", "Method", "Property", "Field", "Constructor", "Enum", "Interface", "Function", "Variable", "Constant", "String", "Number", "Boolean", "Array", "Object", "Key", "Null", "EnumMember", "Struct", "Event", "Operator", "TypeParameter"]>;
14
+ export type SymbolKindType = z.infer<typeof symbolKindSchema>;
12
15
  export declare const rangeSchema: z.ZodObject<{
13
16
  start: z.ZodObject<{
14
17
  line: z.ZodNumber;
@@ -53,7 +56,7 @@ export type Position = z.infer<typeof positionSchema>;
53
56
  export type Range = z.infer<typeof rangeSchema>;
54
57
  interface SymbolBase {
55
58
  name?: string;
56
- kind?: string;
59
+ kind?: SymbolKindType;
57
60
  id?: string;
58
61
  uri?: string;
59
62
  detail?: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.17",
2
+ "version": "0.1.18",
3
3
  "name": "modality-kit",
4
4
  "repository": {
5
5
  "type": "git",