tangled
alpha
login
or
join now
tombl.dev
/
dhtml
1
fork
atom
a post-component library for building user-interfaces on the web.
1
fork
atom
overview
issues
pulls
pipelines
tidy handling of PROD define
tombl.dev
1 year ago
e3c5ae97
370c2e93
verified
This commit was signed with the committer's
known signature
.
tombl.dev
SSH Key Fingerprint:
SHA256:d8AHgL5V+3WdvGdDb3SVBfb0RIRJfkKcqhQ5aG1mVNk=
+4
-1
2 changed files
expand all
collapse all
unified
split
src
html.js
types.ts
-1
src/html.js
reviewed
···
9
9
Span as SpanInstance
10
10
} from './types' */
11
11
12
12
-
// @ts-expect-error -- undefined global
13
12
const DEV = typeof DHTML_PROD === 'undefined' || !DHTML_PROD
14
13
15
14
/** @type {typeof NodeFilter.SHOW_ELEMENT} */ const NODE_FILTER_ELEMENT = 1
+4
src/types.ts
reviewed
···
1
1
+
declare global {
2
2
+
const DHTML_PROD: unknown
3
3
+
}
4
4
+
1
5
interface ToString {
2
6
toString(): string
3
7
}