Skip to content

Commit

Permalink
fix: react types
Browse files Browse the repository at this point in the history
  • Loading branch information
chaxus committed Jun 22, 2024
1 parent 6eceb0f commit 51fce43
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ jobs:
- name: Install deps
run: pnpm install

# - name: format
# run: pnpm run format
- name: format
run: pnpm run format

- name: Lint
run: pnpm run lint
Expand Down
3 changes: 2 additions & 1 deletion packages/ranui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"node": "^18.0.0 || >=20.0.0"
},
"scripts": {
"dev": "vite",
"dev": "vite --host",
"build": "sh ./bin/build.sh",
"build:es": "vite build -c ./build/config.es.ts",
"build:umd": "vite build -c ./build/config.umd.ts",
Expand Down Expand Up @@ -166,6 +166,7 @@
"@playwright/test": "^1.44.0",
"@types/imagemin-svgo": "^10.0.5",
"@types/lodash": "^4.17.1",
"@types/react": "^18.3.1",
"@types/tinycolor2": "^1.4.6",
"@vheemstra/vite-plugin-imagemin": "^1.2.1",
"imagemin-svgo": "^10.0.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/ranui/types/react.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { NAME_AMP } from '@/components/loading';
import type React from 'react';
import type { NAME_AMP } from '@/components/loading';

declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
interface IntrinsicElements {
'r-loading': React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
Expand Down

0 comments on commit 51fce43

Please sign in to comment.