@adviser/cement - v0.0.0
    Preparing search index...

    Interface JSONEnDecoder

    interface JSONEnDecoder {
        stringify<T>(
            input: T | Result<T, Error>,
            replacer?: (this: any, key: string, value: any) => any,
            space?: string | number,
        ): string;
        asyncStringify<T>(
            input: Promise<T | Result<T, Error>>,
            replacer?: (this: any, key: string, value: any) => any,
            space?: string | number,
        ): Promise<string>;
        uint8ify<T>(
            input: T | Result<T, Error>,
            replacer?: (this: any, key: string, value: any) => any,
            space?: string | number,
        ): Uint8Array;
        asyncUint8ify<T>(
            input: Promise<T | Result<T, Error>>,
            replacer?: (this: any, key: string, value: any) => any,
            space?: string | number,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        parse<T>(
            input: ToDecoder,
            reviver?: (this: any, key: string, value: any) => any,
        ): Result<T>;
        asyncParse<T>(
            input: AsyncToDecoder,
            reviver?: (this: any, key: string, value: any) => any,
        ): Promise<Result<T, Error>>;
    }
    Index

    Methods

    • Type Parameters

      • T

      Parameters

      • input: T | Result<T, Error>
      • Optionalreplacer: (this: any, key: string, value: any) => any
      • Optionalspace: string | number

      Returns string

    • Type Parameters

      • T

      Parameters

      • input: Promise<T | Result<T, Error>>
      • Optionalreplacer: (this: any, key: string, value: any) => any
      • Optionalspace: string | number

      Returns Promise<string>

    • Type Parameters

      • T

      Parameters

      • input: T | Result<T, Error>
      • Optionalreplacer: (this: any, key: string, value: any) => any
      • Optionalspace: string | number

      Returns Uint8Array

    • Type Parameters

      • T

      Parameters

      • input: Promise<T | Result<T, Error>>
      • Optionalreplacer: (this: any, key: string, value: any) => any
      • Optionalspace: string | number

      Returns Promise<Uint8Array<ArrayBufferLike>>