3.0.4 • Published 6 months ago

@types/php-serialize v3.0.4

Weekly downloads
198
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/php-serialize

Summary

This package contains type definitions for php-serialize (https://github.com/steelbrain/php-serialize).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/php-serialize.

index.d.ts

// Type definitions for php-serialize 3.0
// Project: https://github.com/steelbrain/php-serialize
// Definitions by: Changhui Lee <https://github.com/blurfx>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7

/// <reference types="node" />

export interface SerializeOptions {
    /** @default 'utf8' */
    readonly encoding?: 'utf8' | 'binary' | undefined;
}

export interface UnserializeOptions {
    /** @default true' */
    readonly strict?: boolean | undefined;
    /** @default 'utf8' */
    readonly encoding?: 'utf8' | 'binary' | undefined;
}

export function isSerialized(givenItem: any, strict?: boolean): boolean;

export function serialize(item: any, scope?: any, givenOptions?: SerializeOptions): string;

export function unserialize(item: string | Buffer, scope?: any, givenOptions?: UnserializeOptions): any;

Additional Details

  • Last updated: Thu, 08 Jul 2021 20:19:36 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Changhui Lee.

3.0.4

6 months ago

3.0.3

7 months ago

3.0.2

8 months ago

3.0.1

3 years ago

3.0.0

4 years ago