amis-rpc-design/node_modules/nullthrows/nullthrows.d.ts

6 lines
153 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
/**
* Throws if value is null or undefined, otherwise returns value.
*/
export default function nullthrows<T>(value?: T | null, message?: string): T;