Skip to content

StringLiteralUnion ​

Type Alias unplugin-pwa-core

type StringLiteralUnion<'maskable'> = 'maskable' | string This has auto completion whereas 'maskable' | string doesn't Adapted from https://github.com/microsoft/TypeScript/issues/29729

ts
type StringLiteralUnion = T | U & Nothing

Released under the MIT License.