Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 2b30ab2

Browse files
copying type definition over
1 parent 478a5c6 commit 2b30ab2

File tree

3 files changed

+15
-7
lines changed

3 files changed

+15
-7
lines changed

.dockerignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
node_modules/**
22
npm-debug.log
3+
yarn-error.log
34
Dockerfile*
45
docker-compose*
56
.dockerignore
6-
.git/**
7-
.gitignore
8-
README.md
9-
LICENSE
107
.vscode/**
118
.idea/**
12-
build/**
9+
build/**
10+
dist/**

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@
66
"analyze": "source-map-explorer build/static/js/main.*",
77
"start": "react-scripts-ts start",
88
"build": "prettier --list-different \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\" && tslint --project ./ && react-scripts-ts build",
9-
"build:dist": "rm -rf dist && tsc --project tsconfig.publish.json",
9+
"build:dist": "rm -rf dist && tsc --project tsconfig.publish.json && cp src/index.d.ts ./dist",
1010
"eject": "react-scripts-ts eject",
1111
"format": "prettier --write \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.tsx\" && tslint --project ./ --fix"
1212
},
1313
"main": "dist/index.js",
14-
"files": [ "dist", "README.md", "src" ],
14+
"types": "dist/index.d.ts",
15+
"files": [
16+
"dist",
17+
"README.md",
18+
"src"
19+
],
1520
"private": false,
1621
"devDependencies": {
1722
"@types/array.prototype.flatmap": "^1.2.0",

src/index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { ComponentType } from 'react';
2+
3+
export type SqlStreamStoreBrowser = ComponentType<{
4+
authorization?: string;
5+
}>;

0 commit comments

Comments
 (0)