mirror of
https://github.com/tailscale/tailscale.git
synced 2025-05-18 08:18:30 +00:00
11 lines
259 B
TypeScript
11 lines
259 B
TypeScript
![]() |
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
/**
|
||
|
* assertNever ensures a branch of code can never be reached,
|
||
|
* resulting in a Typescript error if it can.
|
||
|
*/
|
||
|
export function assertNever(a: never): never {
|
||
|
return a
|
||
|
}
|