Skip to content

Commit

Permalink
fix(types): update to KDL 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Jan 5, 2025
1 parent 0b1d787 commit f0d0598
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export type Value = string | number | boolean | null;
*/
export interface NodeTypeAnnotations {
/** The type annotation of the Node */
name: string;
name: string|undefined;
/** The type annotations of the {@link https://github.com/kdl-org/kdl/blob/main/SPEC.md#argument|Arguments} */
values: string[];
values: Array<string|undefined>;
/** The type annotations of the {@link https://github.com/kdl-org/kdl/blob/main/SPEC.md#property|Properties} */
properties: Record<string, string>;
}
Expand Down Expand Up @@ -64,6 +64,7 @@ export interface FormattingOptions {
indent?: number;
indentChar?: string;
exponentChar?: string;
preferIdentifierString?: boolean;
printEmptyChildren?: boolean;
printNullArgs?: boolean;
printNullProps?: boolean;
Expand Down

0 comments on commit f0d0598

Please sign in to comment.