Skip to content

Commit

Permalink
fix types (#9)
Browse files Browse the repository at this point in the history
* Bump version.
* Fix types.
  • Loading branch information
alexmacarthur authored Aug 3, 2022
1 parent 627240d commit f2539d6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"name": "@ramseyinhouse/steppp",
"version": "0.0.3",
"version": "0.0.4",
"main": "dist/steppp.umd.js",
"module": "dist/steppp.es.js",
"types": "dist/index.d.ts",
"files": [
"dist/"
],
"scripts": {
"dev": "vite",
"build": "vite build",
"build": "vite build && tsc",
"serve": "vite preview",
"test": "vitest run",
"test": "tsc && vitest run",
"prettier": "prettier --write \"**/*.{js,ts,css,md}\"",
"prepare": "husky install"
},
Expand Down
6 changes: 6 additions & 0 deletions src/tests/imperative.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import { getByText } from "@testing-library/dom";
import { getEl, getBody } from "./test-helpers";
import Steppp from "../index";

declare global {
interface Event {
detail: any;
}
}

beforeEach(() => {
document.body.innerHTML = `
<div id="steppp">
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"declaration": true,
"emitDeclarationOnly": true,
"outDir": "dist",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
Expand Down

0 comments on commit f2539d6

Please sign in to comment.