File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,24 @@ export type FileFormat = PredicateType<typeof isFileFormat>;
15
15
16
16
/**
17
17
* Assert that the value is FileFormat.
18
+ *
19
+ * @deprecated Use `assert` function of `unknownutil` instead.
18
20
*/
19
21
export const assertFileFormat = ( v : unknown ) : asserts v is FileFormat =>
20
22
assert ( v , isFileFormat ) ;
21
23
22
24
/**
23
25
* Ensure that the value is FileFormat.
26
+ *
27
+ * @deprecated Use `ensure` function of `unknownutil` instead.
24
28
*/
25
29
export const ensureFileFormat = ( v : unknown ) : FileFormat =>
26
30
ensure ( v , isFileFormat ) ;
27
31
28
32
/**
29
33
* Maybe that the value is FileFormat.
34
+ *
35
+ * @deprecated Use `maybe` function of `unknownutil` instead.
30
36
*/
31
37
export const maybeFileFormat = ( v : unknown ) : FileFormat | undefined =>
32
38
maybe ( v , isFileFormat ) ;
You can’t perform that action at this time.
0 commit comments