Skip to content

Commit

Permalink
build: add "types" to package.json
Browse files Browse the repository at this point in the history
This way, `commandbar-launcher` can be used in Typescript projects.
  • Loading branch information
jluxenberg committed Aug 17, 2023
1 parent 2b3cae0 commit 549f136
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
"version": "1.1.9",
"description": "commandbar-launcher",
"main": "lib/index.js",
"types": "types.d.ts",
"module": "es/index.js",
"files": [
"types.d.ts",
"css",
"es",
"lib",
Expand Down
8 changes: 8 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
declare module 'commandbar-launcher' {
import { CSSProperties, FC } from 'react';

export const getControlKey: () => string;
const Launcher: FC<{ text: string; style: CSSProperties }>;
export default Launcher;
}

0 comments on commit 549f136

Please sign in to comment.