Skip to content

Commit 01fb3aa

Browse files
πŸ”– chore(package.json): update package version to 0.0.10
πŸš€ feat(index.ts): export CV type from mirada package 🎨 style(OpenCvProvider.tsx): use shorthand syntax for React import and remove unused eslint-disable comment
1 parent d27fe45 commit 01fb3aa

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

β€Žpackage.jsonβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencv-react-ts",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "OpenCV react wrapper. Hooks first API.",
55
"author": "subho57",
66
"license": "MIT",
@@ -69,6 +69,7 @@
6969
"eslint-plugin-unused-imports": "^2.0.0",
7070
"gh-pages": "^5.0.0",
7171
"microbundle-crl": "^0.13.11",
72+
"mirada": "^0.0.15",
7273
"npm-run-all": "^4.1.5",
7374
"prettier": "^2.8.8",
7475
"react": "*",

β€Žsrc/index.tsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from './lib/OpenCvProvider';
22
export * from './lib/useOpenCv';
3-
export * from 'mirada/dist/src/types/_cv';
3+
// eslint-disable-next-line import/no-extraneous-dependencies
4+
export type { CV } from 'mirada';

β€Žsrc/lib/OpenCvProvider.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable @typescript-eslint/ban-ts-comment */
22
import type { CV } from 'mirada';
3-
import * as React from 'react';
3+
import React from 'react';
44

55
const OpenCvContext = React.createContext<{ loaded: boolean; cv?: CV }>({ loaded: false, cv: undefined });
66

0 commit comments

Comments
Β (0)