44 */
55
66import type { Ext } from '#src/types'
7- import type { EmptyString , Nullable } from '@flex-development/tutils'
7+ import type { EmptyString , Nilable } from '@flex-development/tutils'
88import type PlatformPath from './platform-path'
99
1010/**
@@ -20,11 +20,11 @@ interface Pathe extends PlatformPath {
2020 * Does nothing if a file extension is not provided.
2121 *
2222 * @param {string } path - Path to evaluate
23- * @param {Nullable <string> } [ext] - File extension to add
23+ * @param {Nilable <string> } [ext] - File extension to add
2424 * @return {string } `path` unmodified or with `ext` appended
2525 * @throws {TypeError } If `path` is not a string or `ext` is not a string
2626 */
27- addExt ( path : string , ext ?: Nullable < string > ) : string
27+ addExt ( path : string , ext ?: Nilable < string > ) : string
2828
2929 /**
3030 * Changes the file extension of the given `path`.
@@ -33,11 +33,11 @@ interface Pathe extends PlatformPath {
3333 * an empty string, however, `path`'s file extension will be removed.
3434 *
3535 * @param {string } path - Path to evaluate
36- * @param {Nullable <string> } [ext] - New file extension
36+ * @param {Nilable <string> } [ext] - New file extension
3737 * @return {string } `path` unmodified or with changed file extension
3838 * @throws {TypeError } If `path` is not a string or `ext` is not a string
3939 */
40- changeExt ( path : string , ext ?: Nullable < string > ) : string
40+ changeExt ( path : string , ext ?: Nilable < string > ) : string
4141
4242 /**
4343 * Appends a file extension to the given `path` if and only if the path does
@@ -47,12 +47,12 @@ interface Pathe extends PlatformPath {
4747 * Does nothing if a file extension isn't provided.
4848 *
4949 * @param {string } path - Path to evaluate
50- * @param {Nullable <string> } [ext] - Default file extension
50+ * @param {Nilable <string> } [ext] - Default file extension
5151 * @param {string[] } [ignore] - File extensions to ignore if found
5252 * @return {string } `path` unmodified or with `ext` appended
5353 * @throws {TypeError } If `path` is not a string or `ext` is not a string
5454 */
55- defaultExt ( path : string , ext ?: Nullable < string > , ignore ?: string [ ] ) : string
55+ defaultExt ( path : string , ext ?: Nilable < string > , ignore ?: string [ ] ) : string
5656
5757 /**
5858 * Formats a file extension.
@@ -75,11 +75,11 @@ interface Pathe extends PlatformPath {
7575 * a file extension isn't provided.
7676 *
7777 * @param {string } path - Path to evaluate
78- * @param {Nullable <string> } [ext] - File extension to removed
78+ * @param {Nilable <string> } [ext] - File extension to removed
7979 * @return {string } `path` unmodified or with `ext` removed
8080 * @throws {TypeError } If `path` is not a string or `ext` is not a string
8181 */
82- removeExt ( path : string , ext ?: Nullable < string > ) : string
82+ removeExt ( path : string , ext ?: Nilable < string > ) : string
8383}
8484
8585export type { Pathe as default }
0 commit comments