UNPKG

@bitbybit-dev/core

Version:

Bit By Bit Developers Core CAD API to Program Geometry

148 lines (147 loc) 3.37 kB
export declare namespace JSON { class StringifyDto { constructor(json?: any); /** * Stringify value * @default undefined */ json: any; } class ParseDto { constructor(text?: string); /** * Stringify value * @default "[0, 0, 0]" */ text: string; } class QueryDto { constructor(json?: any, query?: string); /** * query json structure * @default undefined */ json: any; /** * query path * @default undefined */ query: string; } class SetValueOnPropDto { constructor(json?: any, value?: any, property?: string); /** * query json structure * @default undefined */ json: any; /** * value to be set * @default undefined */ value: any; /** * query json structure * @default propName */ property: string; } class GetJsonFromArrayByFirstPropMatchDto { constructor(jsonArray?: any[], property?: string, match?: any); /** * Array * @default undefined */ jsonArray: any[]; /** * property to check * @default propName */ property: string; /** * Value to match for the property * @default undefined */ match: any; } class GetValueOnPropDto { constructor(json?: any, property?: string); /** * query json structure * @default undefined */ json: any; /** * query json structure * @default propName */ property: string; } class SetValueDto { constructor(json?: any, value?: any, path?: string, prop?: string); /** * query json structure * @default undefined */ json: any; /** * value to be set * @default undefined */ value: any; /** * query to json structure elements on which given prop has to be updated * @default $.pathToParent */ path: string; /** * property to update * @default propertyName */ prop: string; } class SetValuesOnPathsDto { constructor(json?: any, values?: any[], paths?: string[], props?: []); /** * query json structure * @default undefined */ json: any; /** * values to be set * @default undefined */ values: any[]; /** * query json structures * @default undefined */ paths: string[]; /** * properties to update * @default undefined */ props: string[]; } class PathsDto { constructor(json?: any, query?: string); /** * query json structure * @default undefined */ json: any; /** * query path * @default undefined */ query: string; } class JsonDto { constructor(json?: any); /** * json value * @default undefined */ json: any; } }