Files
klz-cables.com/.pnpm-store/v10/files/0a/4961ec47d5f83e0ac96afa717175586c220815e9fab5d37b77acd9d430a338137a670ba90ece1ed435947c66298a65a78078551474b7a8b0317622b278358f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

37 lines
915 B
Plaintext

import { expectType } from 'tsd'
import { createWarning, createDeprecation } from '..'
const WarnInstance = createWarning({
name: 'TypeScriptWarning',
code: 'CODE',
message: 'message'
})
expectType<string>(WarnInstance.code)
expectType<string>(WarnInstance.message)
expectType<string>(WarnInstance.name)
expectType<boolean>(WarnInstance.emitted)
expectType<boolean>(WarnInstance.unlimited)
expectType<void>(WarnInstance())
expectType<void>(WarnInstance('foo'))
expectType<void>(WarnInstance('foo', 'bar'))
const buildWarnUnlimited = createWarning({
name: 'TypeScriptWarning',
code: 'CODE',
message: 'message',
unlimited: true
})
expectType<boolean>(buildWarnUnlimited.unlimited)
const DeprecationInstance = createDeprecation({
code: 'CODE',
message: 'message'
})
expectType<string>(DeprecationInstance.code)
DeprecationInstance()
DeprecationInstance('foo')
DeprecationInstance('foo', 'bar')