UNPKG

morphir-elm

Version:
48 lines (47 loc) 1.91 kB
export type Literal = BoolLiteral | CharLiteral | DecimalLiteral | FloatLiteral | StringLiteral | WholeNumberLiteral; export declare function decodeLiteral(input: any): Literal; export declare function encodeLiteral(value: Literal): any; export declare class BoolLiteral { value: boolean; kind: "BoolLiteral"; constructor(value: boolean); } export declare function decodeBoolLiteral(input: any): BoolLiteral; export declare function encodeBoolLiteral(value: BoolLiteral): any; export declare class CharLiteral { value: string; kind: "CharLiteral"; constructor(value: string); } export declare function decodeCharLiteral(input: any): CharLiteral; export declare function encodeCharLiteral(value: CharLiteral): any; export declare class DecimalLiteral { value: number; kind: "DecimalLiteral"; constructor(value: number); } export declare function decodeDecimalLiteral(input: any): DecimalLiteral; export declare function encodeDecimalLiteral(value: DecimalLiteral): any; export declare class FloatLiteral { value: number; kind: "FloatLiteral"; constructor(value: number); } export declare function decodeFloatLiteral(input: any): FloatLiteral; export declare function encodeFloatLiteral(value: FloatLiteral): any; export declare class StringLiteral { value: string; kind: "StringLiteral"; constructor(value: string); } export declare function decodeStringLiteral(input: any): StringLiteral; export declare function encodeStringLiteral(value: StringLiteral): any; export declare class WholeNumberLiteral { value: number; kind: "WholeNumberLiteral"; constructor(value: number); } export declare function decodeWholeNumberLiteral(input: any): WholeNumberLiteral; export declare function encodeWholeNumberLiteral(value: WholeNumberLiteral): any; declare const _default: {}; export default _default;