Archived
1
0
Fork 0

chore: ignore style for lib folder

This commit is contained in:
Dmitriy Pleshevskiy 2022-03-18 22:49:56 +03:00
parent 87e7f2f40b
commit aed7477085
3 changed files with 22 additions and 26 deletions

2
.eslintignore Normal file
View file

@ -0,0 +1,2 @@
/*
!/src

5
.gitignore vendored
View file

@ -3,13 +3,12 @@
# editors
!/.vscode
# git
!/.gitignore
# makefile
!/makefile
# config
!/.gitignore
!/.eslintignore
!/.eslintrc.yml
!/tsconfig.json

11
lib/nodes.d.ts vendored
View file

@ -1,8 +1,7 @@
import { Nil, Nilable } from "./lang.js";
export declare type AnyNode = TextNode | Elem | Frag | Nil | false;
export declare class TextNode extends String {}
export declare class TextNode extends String {
}
export declare function F(...children: AnyNode[]): Frag;
export declare class Frag {
#private;
@ -13,11 +12,7 @@ export declare class Frag {
withChildren(...nodes: AnyNode[]): this;
addChild(node: AnyNode): void;
}
export declare function E(
tagName: string,
attrs: ElemAttrs,
...children: AnyNode[]
): Elem;
export declare function E(tagName: string, attrs: ElemAttrs, ...children: AnyNode[]): Elem;
export declare type ElemAttrs = Record<string, unknown>;
export declare class Elem extends Frag {
#private;