⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
invoice
/
node_modules
/
sass
/
types
/
util
/
View File Name :
promise_or.d.ts
/** * A utility type for choosing between synchronous and asynchronous return * values. * * This is used as the return value for plugins like {@link CustomFunction}, * {@link Importer}, and {@link FileImporter} so that TypeScript enforces that * asynchronous plugins are only passed to {@link compileAsync} and {@link * compileStringAsync}, not {@link compile} or {@link compileString}. * * @typeParam sync - If this is `'sync'`, this can only be a `T`. If it's * `'async'`, this can be either a `T` or a `Promise<T>`. * * @category Other */ export type PromiseOr<T, sync extends 'sync' | 'async'> = sync extends 'async' ? T | Promise<T> : T;