/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
compiler/packages/react-mcp-server/src/utils/assertExhaustive.ts
13 строк
380 B
lauren
[mcp] Refine passes returned (#32930)
17 апр 2025, 00:49
Не верифицирован
17 апр 2025, 00:49
3e04b2a
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * Trigger an exhaustiveness check in TypeScript and throw at runtime. */ export default function assertExhaustive(_: never, errorMsg: string): never { throw new Error(errorMsg); }