Skip to content

Commit

Permalink
Fix types and add accessors (#11)
Browse files Browse the repository at this point in the history
* Expose app and table ids

* Fix types

* Ignore
  • Loading branch information
dvdsgl authored Oct 28, 2023
1 parent 440c481 commit 0c33cc3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules
.env
dist
.DS_Store
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Client for Glide API",
"main": "dist/cjs/index.js",
"module": "dist/es6/index.js",
"types": "dist/index.d.ts",
"types": "dist/cjs/index.d.ts",
"scripts": {
"build": "tsc && tsc --build tsconfig.cjs.json",
"test": "jest"
Expand Down
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ const defaultEndpoint = "https://api.glideapp.io/api/function";
class Table<T extends ColumnSchema> {
private props: TableProps<T>;

public get app(): string {
return this.props.app;
}

public get table(): string {
return this.props.table;
}

constructor(props: TableProps<T>) {
this.props = {
token: process.env.GLIDE_TOKEN,
Expand Down

0 comments on commit 0c33cc3

Please sign in to comment.