Skip to content

Commit 0c33cc3

Browse files
authored
Fix types and add accessors (#11)
* Expose app and table ids * Fix types * Ignore
1 parent 440c481 commit 0c33cc3

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/node_modules
22
.env
33
dist
4+
.DS_Store

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Client for Glide API",
55
"main": "dist/cjs/index.js",
66
"module": "dist/es6/index.js",
7-
"types": "dist/index.d.ts",
7+
"types": "dist/cjs/index.d.ts",
88
"scripts": {
99
"build": "tsc && tsc --build tsconfig.cjs.json",
1010
"test": "jest"

src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ const defaultEndpoint = "https://api.glideapp.io/api/function";
1818
class Table<T extends ColumnSchema> {
1919
private props: TableProps<T>;
2020

21+
public get app(): string {
22+
return this.props.app;
23+
}
24+
25+
public get table(): string {
26+
return this.props.table;
27+
}
28+
2129
constructor(props: TableProps<T>) {
2230
this.props = {
2331
token: process.env.GLIDE_TOKEN,

0 commit comments

Comments
 (0)