@mnrendra/types-aliases
v1.1.0
Published
A TypeScript type to validate the input of @mnrendra/alias-resolver or the output of @mnrendra/tsconfig-alias-parser.
Downloads
64
Maintainers
Readme
@mnrendra/types-aliases
A TypeScript type to validate the input of @mnrendra/alias-resolver or the output of @mnrendra/tsconfig-alias-parser.
Install
npm i -D @mnrendra/types-aliases
Usage
import type { Aliases, Alias } from '@mnrendra/types-aliases'
// Alias
const alias: Alias = {
alias: '@',
path: './src'
}
console.log('alias:', alias)
// Aliases
const aliases: Aliases = [
{
alias: '@',
path: './src'
},
{
alias: '@tests',
path: './tests'
}
]
console.log('aliases:', aliases)
Types
import type {
Aliases, // A TypeScript type to validate the input of `@mnrendra/alias-resolver` or the output of `@mnrendra/tsconfig-alias-parser`.
Alias // A TypeScript type to validate an alias for input of `@mnrendra/alias-resolver` or output of `@mnrendra/tsconfig-alias-parser`.
} from '@mnrendra/types-aliases'