Skip to content

Commit 22fc45a

Browse files
authored
Merge pull request #39 from tablelandnetwork/export-schema-and-column
Export Schema and Column types so they can be used externally
2 parents 47c3302 + 77cc447 commit 22fc45a

3 files changed

Lines changed: 27 additions & 19 deletions

File tree

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/sdk/src/validator/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ import {
77
} from "../helpers/index.js";
88
import { getHealth } from "./health.js";
99
import { getVersion, type Version } from "./version.js";
10-
import { getTable, type Table, type Params as TableParams } from "./tables.js";
10+
import {
11+
getTable,
12+
type Table,
13+
type Params as TableParams,
14+
type Column,
15+
type Schema,
16+
} from "./tables.js";
1117
import {
1218
getQuery,
1319
type Params as QueryParams,
@@ -29,6 +35,8 @@ export {
2935
type TableFormat,
3036
type ObjectsFormat,
3137
type QueryParams,
38+
type Column,
39+
type Schema,
3240
};
3341

3442
/**

packages/sdk/src/validator/tables.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import {
1515
export type Params =
1616
Paths["/tables/{chainId}/{tableId}"]["get"]["parameters"]["path"];
1717

18-
type Column = Components["schemas"]["Column"];
18+
export type Column = Components["schemas"]["Column"];
1919
type BaseSchema = Components["schemas"]["Schema"];
20-
interface Schema extends BaseSchema {
20+
export interface Schema extends BaseSchema {
2121
readonly columns: Array<PartialRequired<Column, "constraints">>;
2222
}
2323

0 commit comments

Comments
 (0)