File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11import { EJSON } from 'bson' ;
22import { Base64 } from 'js-base64' ;
33import { decompress } from 'lz4js' ;
4+ import type { TypeGuardFunction } from './types.js' ;
45
5- export type ParseTypeGuardFunction < T > = ( obj : any ) => obj is T ;
66export type ParseReviverFunction = ( this : any , key : string , value : any ) => any ;
77
88export type ParseOptions = {
@@ -73,7 +73,7 @@ export function parse<T = any>(
7373 text : string ,
7474 reviver ?: ParseReviverFunction | ParseOptions | null ,
7575 options ?: ParseOptions ,
76- typeGuard ?: ParseTypeGuardFunction < T > ,
76+ typeGuard ?: TypeGuardFunction < T > ,
7777) : T {
7878 let _reviver : ParseReviverFunction | undefined = undefined ;
7979 if ( typeof reviver === 'function' ) {
Original file line number Diff line number Diff line change 1+ export type TypeGuardFunction < T > = ( obj : any ) => obj is T ;
You can’t perform that action at this time.
0 commit comments