Skip to content

Instantly share code, notes, and snippets.

@brunosabot
Created February 27, 2022 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunosabot/bd30f8a6c30d230c3e7a8dc12789f1d6 to your computer and use it in GitHub Desktop.
Save brunosabot/bd30f8a6c30d230c3e7a8dc12789f1d6 to your computer and use it in GitHub Desktop.
interface IPosition {
line: number;
column: number;
offset: number;
}
interface IAST {
children?: IAST[];
depth?: number;
meta?: string | null;
lang?: string;
type: string;
value?: string;
name?: string;
attributes?: IAST[];
position?: {
start: IPosition;
end: IPosition;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment