Skip to content

Commit a1b5e7f

Browse files
committed
Export AST node types for accurate type guards
1 parent aa5a76b commit a1b5e7f

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

types.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ type ColumnDefinitionOptList = {
384384
character_set?: { type: "CHARACTER SET"; value: string; symbol?: "=" };
385385
};
386386

387-
type CreateColumnDefinition = {
387+
export type CreateColumnDefinition = {
388388
column: ColumnRef;
389389
definition: DataType;
390390
resource: "column";
@@ -401,7 +401,7 @@ type IndexOption = {
401401
expr: LiteralNumeric;
402402
};
403403

404-
type CreateIndexDefinition = {
404+
export type CreateIndexDefinition = {
405405
index?: string;
406406
definition: ColumnRef[];
407407
keyword: "index" | "key";
@@ -410,7 +410,7 @@ type CreateIndexDefinition = {
410410
index_options?: IndexOption[];
411411
};
412412

413-
type CreateFulltextSpatialIndexDefinition = {
413+
export type CreateFulltextSpatialIndexDefinition = {
414414
index?: string;
415415
definition: ColumnRef[];
416416
keyword?:
@@ -426,7 +426,7 @@ type CreateFulltextSpatialIndexDefinition = {
426426

427427
type ConstraintName = { keyword: "constraint"; constraint: string };
428428

429-
type CreateConstraintPrimary = {
429+
export type CreateConstraintPrimary = {
430430
constraint?: ConstraintName["constraint"];
431431
definition: ColumnRef[];
432432
constraint_type: "primary key";
@@ -436,7 +436,7 @@ type CreateConstraintPrimary = {
436436
index_options?: IndexOption[];
437437
};
438438

439-
type CreateConstraintUnique = {
439+
export type CreateConstraintUnique = {
440440
constraint?: ConstraintName["constraint"];
441441
definition: ColumnRef[];
442442
constraint_type: "unique key" | "unique" | "unique index";
@@ -447,7 +447,7 @@ type CreateConstraintUnique = {
447447
index_options?: IndexOption[];
448448
};
449449

450-
type CreateConstraintForeign = {
450+
export type CreateConstraintForeign = {
451451
constraint?: ConstraintName["constraint"];
452452
definition: ColumnRef[];
453453
constraint_type: "FOREIGN KEY";
@@ -457,21 +457,21 @@ type CreateConstraintForeign = {
457457
reference_definition?: any;
458458
};
459459

460-
type CreateConstraintCheck = {
460+
export type CreateConstraintCheck = {
461461
constraint?: ConstraintName["constraint"];
462462
definition: any[];
463463
constraint_type: "check";
464464
keyword?: ConstraintName["keyword"];
465465
resource: "constraint";
466466
};
467467

468-
type CreateConstraintDefinition =
468+
export type CreateConstraintDefinition =
469469
| CreateConstraintPrimary
470470
| CreateConstraintUnique
471471
| CreateConstraintForeign
472472
| CreateConstraintCheck;
473473

474-
type CreateDefinition =
474+
export type CreateDefinition =
475475
| CreateColumnDefinition
476476
| CreateIndexDefinition
477477
| CreateFulltextSpatialIndexDefinition

0 commit comments

Comments
 (0)