* Introduce disablePrototypePoisoningProtection option * Updated test * Updated docs * Fix bundler test Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9fe088589c
commit
528b90d19a
5
lib/Serializer.d.ts
vendored
5
lib/Serializer.d.ts
vendored
@ -17,7 +17,12 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
export interface SerializerOptions {
|
||||
disablePrototypePoisoningProtection: boolean | 'proto' | 'constructor'
|
||||
}
|
||||
|
||||
export default class Serializer {
|
||||
constructor (opts?: SerializerOptions)
|
||||
serialize(object: any): string;
|
||||
deserialize(json: string): any;
|
||||
ndserialize(array: any[]): string;
|
||||
|
||||
Reference in New Issue
Block a user