mirror of
https://github.com/misskey-dev/misskey
synced 2025-08-24 04:52:51 +02:00
* fix docker build * enable check spdx license id in frontend-builder * fix eslint config * run eslint for frontend-builder in ci * fix eslint * add license headers * fix unnecessary comments * update changelog * fix generateDts * fix tsx
12 lines
349 B
TypeScript
12 lines
349 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and misskey-project
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
export function assertNever(x: never): never {
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
throw new Error(`Unexpected type: ${(x as any)?.type ?? x}`);
|
|
}
|
|
|
|
export function assertType<T>(node: unknown): asserts node is T {
|
|
}
|