node/@bufbuild/protobuf/dist/commonjs/unknown-enum.d.ts
raw| 1 | import type { DescEnum } from "./descriptors.js"; |
| 2 | import type { UnknownEnum } from "./types.js"; |
| 3 | /** |
| 4 | * Open enums can contain numeric values that are not in the set of values |
| 5 | * defined by the enum. |
| 6 | * |
| 7 | * This function returns true for those values, and narrows the type to |
| 8 | * `UnknownEnum`. |
| 9 | */ |
| 10 | export declare function isUnknownEnum(desc: DescEnum, value: number): value is UnknownEnum; |