UNPKG

@litert/typeguard

Version:

An easy and powerful data validation code generator by JavaScript.

35 lines 1.33 kB
/** * Copyright 2023 Angus Fenying <fenying@litert.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import * as C from './Common'; import * as I from './Internal'; export declare class BuiltInTypeCompiler implements I.IBuiltInTypeCompiler { private readonly _lang; constructor(_lang: C.ILanguageBuilder); isStringType(type: string): boolean; isConstructed(type: string): boolean; isElemental(type: string): boolean; isBuiltInType(type: string): boolean; compile(type: string, ctx: I.IContext, args: number[]): string; private _isDecimal; private _isArray; private _isNumber; private _checkValidNumber; private _checkValidInteger; private _checkValidUInteger; private _isInteger; private _isString; } //# sourceMappingURL=BuiltInTypeCompiler.d.ts.map