Skip to content

Commit 91c83e2

Browse files
committed
types updated to match the supported specifiers (%d %f and %s)
1 parent c20c174 commit 91c83e2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/sprintf/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var PATTERN =
5555
* ```
5656
* @template {string} T
5757
* @param {T} string - string printf format string
58-
* @param {import('./types/index.d').SprintfArgs<T>|import('./types/index.d').SprintfArgs<T>[]|undefined} args String arguments.
58+
* @param {import('./types/index.d').SprintfArgs<T>|import('./types/index.d').SprintfArgs<T>[]} args String arguments.
5959
*
6060
* @return {string} Formatted string.
6161
*/

packages/sprintf/types/index.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
type Specifiers = {
22
's': string,
33
'd': number,
4-
'b': boolean,
5-
'D': Date
4+
'f': number
65
};
76
type S = keyof Specifiers;
87

0 commit comments

Comments
 (0)