UNPKG

next-plugin-preval

Version:

> Pre-evaluate async functions (for data fetches) at build time and import them like JSON

5 lines (3 loc) 126 B
type Unwrap<T> = T extends Promise<infer U> ? U : T; declare function preval<T>(value: T): Unwrap<T>; export default preval;