@boundaryml/baml
Advanced tools
Comparing version 0.51.1 to 0.51.2
@@ -109,2 +109,4 @@ /* auto-generated by NAPI-RS */ | ||
null(): FieldType | ||
map(key: FieldType, value: FieldType): FieldType | ||
union(types: Array<FieldType>): FieldType | ||
} | ||
@@ -111,0 +113,0 @@ |
{ | ||
"name": "@boundaryml/baml", | ||
"version": "0.51.1", | ||
"version": "0.51.2", | ||
"description": "BAML typescript bindings (package.json)", | ||
@@ -83,9 +83,9 @@ "repository": { | ||
"optionalDependencies": { | ||
"@boundaryml/baml-darwin-arm64": "0.51.1", | ||
"@boundaryml/baml-win32-arm64-msvc": "0.51.1", | ||
"@boundaryml/baml-linux-arm64-gnu": "0.51.1", | ||
"@boundaryml/baml-darwin-x64": "0.51.1", | ||
"@boundaryml/baml-win32-x64-msvc": "0.51.1", | ||
"@boundaryml/baml-linux-x64-gnu": "0.51.1" | ||
"@boundaryml/baml-darwin-arm64": "0.51.2", | ||
"@boundaryml/baml-win32-arm64-msvc": "0.51.2", | ||
"@boundaryml/baml-linux-arm64-gnu": "0.51.2", | ||
"@boundaryml/baml-darwin-x64": "0.51.2", | ||
"@boundaryml/baml-win32-x64-msvc": "0.51.2", | ||
"@boundaryml/baml-linux-x64-gnu": "0.51.2" | ||
} | ||
} |
@@ -16,2 +16,3 @@ import { ClassPropertyBuilder as _ClassPropertyBuilder, EnumValueBuilder, FieldType, TypeBuilder as _TypeBuilder } from './native'; | ||
_tb(): _TypeBuilder; | ||
null(): FieldType; | ||
string(): FieldType; | ||
@@ -22,2 +23,4 @@ int(): FieldType; | ||
list(type: FieldType): FieldType; | ||
map(keyType: FieldType, valueType: FieldType): FieldType; | ||
union(types: FieldType[]): FieldType; | ||
classBuilder<Name extends string, Properties extends string>(name: Name, properties: Properties[]): ClassBuilder<Name, Properties>; | ||
@@ -24,0 +27,0 @@ enumBuilder<Name extends string, T extends string>(name: Name, values: T[]): EnumBuilder<Name, T>; |
@@ -17,2 +17,5 @@ "use strict"; | ||
} | ||
null() { | ||
return this.tb.null(); | ||
} | ||
string() { | ||
@@ -33,2 +36,8 @@ return this.tb.string(); | ||
} | ||
map(keyType, valueType) { | ||
return this.tb.map(keyType, valueType); | ||
} | ||
union(types) { | ||
return this.tb.union(types); | ||
} | ||
classBuilder(name, properties) { | ||
@@ -35,0 +44,0 @@ return new ClassBuilder(this.tb, name, new Set(properties)); |
31556
863