Skip to content

Commit 3032b9e

Browse files
Merge pull request #9 from heppokofrontend/feature/update-type
Feature/update type
2 parents 57e5688 + 17573d7 commit 3032b9e

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

@types/global.d.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import * as React from 'react';
2-
3-
export {};
41
declare module 'react' {
52
// A type for the properties of a function component
63
interface CodeBlockHTMLAttributes<T> extends HTMLAttributes<T> {
@@ -25,9 +22,11 @@ export type CodeBlockProps = React.DetailedHTMLProps<
2522
controls?: boolean;
2623
};
2724

28-
// A type for JSX markup
29-
declare module 'JSX' {
30-
interface IntrinsicElements {
31-
'code-block': CodeBlockProps;
25+
declare global {
26+
// A type for JSX markup
27+
namespace JSX {
28+
interface IntrinsicElements {
29+
'code-block': CodeBlockProps;
30+
}
3231
}
3332
}

lib/html-code-block-element.all.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/html-code-block-element.common.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/html-code-block-element.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@heppokofrontend/html-code-block-element",
33
"description": "Code block custom element with syntax highlighting and copy button.",
4-
"version": "2.0.2",
4+
"version": "2.0.3",
55
"author": "heppokofrontend",
66
"bugs": {
77
"url": "https://github.com/heppokofrontend/html-code-block-element/issues"

0 commit comments

Comments
 (0)