16 lines
563 B
TypeScript
16 lines
563 B
TypeScript
import Output from "../models/output";
|
|
import Page from "../models/page";
|
|
import { EncodedPage } from "../json/encodePage";
|
|
type PageAttributes = {
|
|
type: string;
|
|
path: string;
|
|
rawPath: string;
|
|
};
|
|
export type EncodedPageWithAttributes = EncodedPage & PageAttributes;
|
|
export type PartialEncodedPageWithAttributes = EncodedPage & Partial<PageAttributes>;
|
|
/**
|
|
Encode a page in a context to a JS API
|
|
*/
|
|
declare function encodePage(output: Output, page: Page): EncodedPageWithAttributes;
|
|
export default encodePage;
|
|
//# sourceMappingURL=encodePage.d.ts.map
|