UNPKG

next

Version:

The React Framework

13 lines (12 loc) 363 B
/** * Read record value or throw Promise if it's not resolved yet. */ export function readRecordValue(thenable) { // @ts-expect-error TODO: fix type if (thenable.status === "fulfilled") { // @ts-expect-error TODO: fix type return thenable.value; } else { throw thenable; } } //# sourceMappingURL=read-record-value.js.map