@graphql-markdown/types
Version:
Common types for @graphql-markdown packages
17 lines (12 loc) • 392 B
TypeScript
export type Maybe<T> = T | null | undefined;
export interface Category {
category: string;
slug: string;
}
export type MDXString = string & { _opaque: typeof MDX_STRING };
declare const MDX_STRING: unique symbol;
export type PrettifyCallbackFunction = (
text: string,
options?: unknown,
) => Promise<Maybe<string>>;
export type EnsureDirOptions = Maybe<{ forceEmpty?: boolean }>;