Skip to content

Commit f3e9b4b

Browse files
committed
Fixed another typo on TS definition
1 parent a4e42fc commit f3e9b4b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

esm/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const set = (known, input, value) => {
5555
/**
5656
* Converts a specialized flatted string into a JS value.
5757
* @param {string} text
58-
* @param {((this: any, key: string, value: any) => any) | undefined): any} [reviver]
58+
* @param {(this: any, key: string, value: any) => any} [reviver]
5959
* @returns {any}
6060
*/
6161
export const parse = (text, reviver) => {

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@wr/flatted",
3-
"version": "3.3.0",
3+
"version": "3.3.1",
44
"exports": "./esm/index.js",
55
"exclude": [
66
".github/*",

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function parse(text: string, reviver: any): any;
1+
export function parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
22
export function stringify(value: any, replacer?: (string | number)[] | ((this: any, key: string, value: any) => any), space?: string | number | undefined): string;
33
export function toJSON(value: any): any;
44
export function fromJSON(value: any): any;

0 commit comments

Comments
 (0)