- Introduced blog routing using Next.js App Router - Implemented dynamic [slug] pages for blog posts - Added MDX-based content loading via lib/posts - Integrated shared TopBar layout with navigation - Established clear content, lib and component separation
13 lines
387 B
TypeScript
13 lines
387 B
TypeScript
/**
|
|
* A `Promise.withResolvers` implementation that exposes the `resolve` and
|
|
* `reject` functions on a `Promise`.
|
|
*
|
|
* @see https://tc39.es/proposal-promise-with-resolvers/
|
|
*/
|
|
export declare class DetachedPromise<T = any> {
|
|
readonly resolve: (value: T | PromiseLike<T>) => void;
|
|
readonly reject: (reason: any) => void;
|
|
readonly promise: Promise<T>;
|
|
constructor();
|
|
}
|