Skip to content

Commit 95faeeb

Browse files
committed
📝 Mark xxxxxFileFormat functions as deprecated
1 parent 64fc101 commit 95faeeb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

denops_std/buffer/fileformat.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,24 @@ export type FileFormat = PredicateType<typeof isFileFormat>;
1515

1616
/**
1717
* Assert that the value is FileFormat.
18+
*
19+
* @deprecated Use `assert` function of `unknownutil` instead.
1820
*/
1921
export const assertFileFormat = (v: unknown): asserts v is FileFormat =>
2022
assert(v, isFileFormat);
2123

2224
/**
2325
* Ensure that the value is FileFormat.
26+
*
27+
* @deprecated Use `ensure` function of `unknownutil` instead.
2428
*/
2529
export const ensureFileFormat = (v: unknown): FileFormat =>
2630
ensure(v, isFileFormat);
2731

2832
/**
2933
* Maybe that the value is FileFormat.
34+
*
35+
* @deprecated Use `maybe` function of `unknownutil` instead.
3036
*/
3137
export const maybeFileFormat = (v: unknown): FileFormat | undefined =>
3238
maybe(v, isFileFormat);

0 commit comments

Comments
 (0)