Skip to content

Commit

Permalink
Define various types under the Snabbdom namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-ka committed Jul 10, 2024
1 parent e6eadc2 commit 35537ed
Show file tree
Hide file tree
Showing 3 changed files with 1,125 additions and 1,130 deletions.
16 changes: 8 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import type { Attrs, Classes, Dataset, On, Props } from 'snabbdom';

import type Snabbdom from './types';
import type { Internal } from './types';
import type Snabbdom from './jsx-runtime';

// eslint-disable-next-line import/no-default-export
export default Snabbdom;

export declare namespace jsx {
export interface CustomModules {
declare namespace jsx {
interface CustomModules {
attrs: Attrs;
class: Classes;
dataset: Dataset;
props: Props;
on: On;
style: Internal.Style;
style: Snabbdom.Style;
}
}

// eslint-disable-next-line import/no-default-export
export default Snabbdom;
export type { jsx };
Loading

0 comments on commit 35537ed

Please sign in to comment.