arson
arson copied to clipboard
TypeScript signatures
declare module 'arson' {
export type ARSONValue =
| string
| number
| boolean
| null
| RegExp
| Date
| Buffer
| Map<ARSONValue, ARSONValue>
| Set<ARSONValue>
| ARSONValue[]
| { [key: string]: ARSONValue }
type Serializer<S> = {
parse: (x: string) => S
stringify: (x: S) => string
}
export default Serializer<ARSONValue>
}