| 1 | /** |
| 2 | * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | * |
| 4 | * This source code is licensed under the MIT license found in the |
| 5 | * LICENSE file in the root directory of this source tree. |
| 6 | */ |
| 7 | |
| 8 | export default function todo(message: string): never { |
| 9 | throw new Error('TODO: ' + message); |
| 10 | } |
| 11 | |
| 12 | export function todoInvariant( |
| 13 | condition: unknown, |
| 14 | message: string, |
| 15 | ): asserts condition { |
| 16 | if (!condition) { |
| 17 | throw new Error('TODO: ' + message); |
| 18 | } |
| 19 | } |