@davidsouther/jiffies 2.2.4 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/LICENSE +1 -1
  2. package/lib/cjs/assert.d.ts +2 -2
  3. package/lib/cjs/awaitable.d.ts +1 -1
  4. package/lib/cjs/components/button_bar.d.ts +2 -2
  5. package/lib/cjs/components/inline_edit.d.ts +2 -2
  6. package/lib/cjs/components/logger.d.ts +1 -1
  7. package/lib/cjs/components/select.d.ts +4 -7
  8. package/lib/cjs/components/test.d.ts +1 -1
  9. package/lib/cjs/components/virtual_scroll.d.ts +6 -4
  10. package/lib/cjs/context.d.ts +5 -9
  11. package/lib/cjs/debounce.d.ts +1 -1
  12. package/lib/cjs/diff.d.ts +2 -2
  13. package/lib/cjs/display.d.ts +1 -1
  14. package/lib/cjs/dom/css/border.d.ts +2 -2
  15. package/lib/cjs/dom/css/constants.d.ts +3 -3
  16. package/lib/cjs/dom/css/core.d.ts +1 -1
  17. package/lib/cjs/dom/css/fstyle.d.ts +2 -2
  18. package/lib/cjs/dom/css/sizing.d.ts +2 -2
  19. package/lib/cjs/dom/dom.d.ts +8 -8
  20. package/lib/cjs/dom/fc.d.ts +8 -12
  21. package/lib/cjs/dom/form/form.d.ts +5 -6
  22. package/lib/cjs/dom/html.d.ts +112 -113
  23. package/lib/cjs/dom/observable.d.ts +1 -1
  24. package/lib/cjs/dom/provide.d.ts +1 -1
  25. package/lib/cjs/dom/router/router.d.ts +2 -2
  26. package/lib/cjs/dom/svg.d.ts +64 -64
  27. package/lib/cjs/dom/types/css.d.ts +10 -32
  28. package/lib/cjs/dom/types/html.d.ts +4 -6
  29. package/lib/cjs/equal.d.ts +8 -5
  30. package/lib/cjs/flags.d.ts +1 -1
  31. package/lib/cjs/fs.d.ts +3 -3
  32. package/lib/cjs/fs_node.d.ts +1 -1
  33. package/lib/cjs/lock.d.ts +1 -1
  34. package/lib/cjs/log.d.ts +9 -9
  35. package/lib/cjs/observable/event.d.ts +2 -2
  36. package/lib/cjs/observable/observable.d.ts +37 -35
  37. package/lib/cjs/result.d.ts +21 -21
  38. package/lib/cjs/safe.d.ts +1 -1
  39. package/lib/cjs/scope/describe.d.ts +4 -4
  40. package/lib/cjs/scope/display/console.d.ts +1 -1
  41. package/lib/cjs/scope/display/dom.d.ts +2 -2
  42. package/lib/cjs/scope/display/junit.d.ts +1 -1
  43. package/lib/cjs/scope/execute.d.ts +2 -2
  44. package/lib/cjs/scope/index.d.ts +3 -3
  45. package/lib/cjs/scope/scope.d.ts +3 -3
  46. package/lib/cjs/scope/state.d.ts +1 -1
  47. package/lib/cjs/server/http/apps.d.ts +1 -1
  48. package/lib/cjs/server/http/css.d.ts +1 -1
  49. package/lib/cjs/server/http/index.d.ts +4 -9
  50. package/lib/cjs/server/http/response.d.ts +3 -3
  51. package/lib/cjs/server/http/sitemap.d.ts +1 -1
  52. package/lib/cjs/server/http/static.d.ts +1 -1
  53. package/lib/cjs/server/http/typescript.d.ts +1 -1
  54. package/lib/cjs/test_all.d.ts +9 -9
  55. package/lib/cjs/tsconfig.tsbuildinfo +1 -1
  56. package/lib/esm/assert.d.ts +2 -2
  57. package/lib/esm/awaitable.d.ts +1 -1
  58. package/lib/esm/components/button_bar.d.ts +2 -2
  59. package/lib/esm/components/inline_edit.d.ts +2 -2
  60. package/lib/esm/components/logger.d.ts +1 -1
  61. package/lib/esm/components/select.d.ts +3 -3
  62. package/lib/esm/components/test.d.ts +1 -1
  63. package/lib/esm/components/virtual_scroll.d.ts +6 -4
  64. package/lib/esm/context.d.ts +5 -9
  65. package/lib/esm/debounce.d.ts +1 -2
  66. package/lib/esm/diff.d.ts +2 -2
  67. package/lib/esm/display.d.ts +1 -1
  68. package/lib/esm/dom/css/border.d.ts +2 -2
  69. package/lib/esm/dom/css/constants.d.ts +3 -3
  70. package/lib/esm/dom/css/core.d.ts +1 -1
  71. package/lib/esm/dom/css/fstyle.d.ts +2 -2
  72. package/lib/esm/dom/css/sizing.d.ts +2 -2
  73. package/lib/esm/dom/dom.d.ts +8 -8
  74. package/lib/esm/dom/fc.d.ts +8 -12
  75. package/lib/esm/dom/form/form.d.ts +5 -6
  76. package/lib/esm/dom/html.d.ts +112 -113
  77. package/lib/esm/dom/observable.d.ts +1 -1
  78. package/lib/esm/dom/provide.d.ts +1 -1
  79. package/lib/esm/dom/router/router.d.ts +2 -2
  80. package/lib/esm/dom/svg.d.ts +64 -64
  81. package/lib/esm/dom/types/css.d.ts +10 -32
  82. package/lib/esm/dom/types/html.d.ts +4 -6
  83. package/lib/esm/equal.d.ts +8 -5
  84. package/lib/esm/flags.d.ts +1 -1
  85. package/lib/esm/fs.d.ts +3 -3
  86. package/lib/esm/fs_node.d.ts +1 -1
  87. package/lib/esm/lock.d.ts +1 -1
  88. package/lib/esm/log.d.ts +9 -9
  89. package/lib/esm/observable/event.d.ts +2 -2
  90. package/lib/esm/observable/observable.d.ts +37 -35
  91. package/lib/esm/result.d.ts +21 -21
  92. package/lib/esm/safe.d.ts +1 -1
  93. package/lib/esm/scope/describe.d.ts +4 -4
  94. package/lib/esm/scope/display/console.d.ts +1 -1
  95. package/lib/esm/scope/display/dom.d.ts +2 -2
  96. package/lib/esm/scope/display/junit.d.ts +1 -1
  97. package/lib/esm/scope/execute.d.ts +2 -2
  98. package/lib/esm/scope/index.d.ts +3 -3
  99. package/lib/esm/scope/scope.d.ts +3 -3
  100. package/lib/esm/scope/state.d.ts +1 -1
  101. package/lib/esm/server/http/apps.d.ts +1 -1
  102. package/lib/esm/server/http/css.d.ts +1 -1
  103. package/lib/esm/server/http/index.d.ts +4 -9
  104. package/lib/esm/server/http/response.d.ts +3 -3
  105. package/lib/esm/server/http/sitemap.d.ts +1 -1
  106. package/lib/esm/server/http/static.d.ts +1 -1
  107. package/lib/esm/server/http/typescript.d.ts +1 -1
  108. package/lib/esm/test_all.d.ts +9 -9
  109. package/lib/esm/tsconfig.tsbuildinfo +1 -1
  110. package/package.json +11 -9
  111. package/src/assert.ts +5 -5
  112. package/src/components/button_bar.ts +28 -30
  113. package/src/components/inline_edit.ts +8 -7
  114. package/src/components/logger.ts +6 -6
  115. package/src/components/select.ts +7 -7
  116. package/src/components/test.ts +5 -0
  117. package/src/components/virtual_scroll.test.ts +9 -6
  118. package/src/components/virtual_scroll.ts +29 -24
  119. package/src/context.test.ts +4 -4
  120. package/src/context.ts +16 -11
  121. package/src/debounce.ts +9 -3
  122. package/src/diff.test.ts +4 -4
  123. package/src/diff.ts +14 -16
  124. package/src/dom/css/border.ts +11 -11
  125. package/src/dom/css/core.ts +1 -1
  126. package/src/dom/css/fstyle.ts +4 -4
  127. package/src/dom/css/sizing.ts +1 -1
  128. package/src/dom/dom.ts +57 -47
  129. package/src/dom/fc.test.ts +8 -8
  130. package/src/dom/fc.ts +32 -35
  131. package/src/dom/form/form.app.ts +9 -9
  132. package/src/dom/form/form.ts +25 -16
  133. package/src/dom/form/index.html +3 -2
  134. package/src/dom/html.test.ts +12 -10
  135. package/src/dom/html.ts +2 -3
  136. package/src/dom/observable.test.ts +6 -6
  137. package/src/dom/observable.ts +2 -2
  138. package/src/dom/provide.ts +1 -1
  139. package/src/dom/router/link.ts +3 -3
  140. package/src/dom/router/router.ts +5 -5
  141. package/src/dom/svg.ts +7 -6
  142. package/src/dom/test.ts +3 -0
  143. package/src/dom/types/css.ts +43 -61
  144. package/src/dom/types/html.ts +2 -4
  145. package/src/dom/xml.ts +2 -2
  146. package/src/equal.test.ts +3 -3
  147. package/src/equal.ts +27 -14
  148. package/src/flags.test.ts +2 -2
  149. package/src/flags.ts +2 -2
  150. package/src/fs.test.ts +5 -5
  151. package/src/fs.ts +26 -20
  152. package/src/fs_node.ts +4 -4
  153. package/src/fs_win.test.ts +1 -1
  154. package/src/generator.test.ts +4 -3
  155. package/src/generator.ts +1 -1
  156. package/src/hooks/_notes +4 -1
  157. package/src/index.html +7 -7
  158. package/src/lock.test.ts +4 -4
  159. package/src/lock.ts +8 -7
  160. package/src/log.ts +28 -18
  161. package/src/observable/event.ts +7 -7
  162. package/src/observable/observable.test.ts +3 -3
  163. package/src/observable/observable.ts +71 -52
  164. package/src/result.test.ts +7 -10
  165. package/src/result.ts +51 -47
  166. package/src/safe.ts +1 -1
  167. package/src/scope/describe.ts +12 -11
  168. package/src/scope/display/console.ts +4 -4
  169. package/src/scope/display/dom.ts +9 -9
  170. package/src/scope/display/junit.ts +21 -24
  171. package/src/scope/execute.ts +17 -12
  172. package/src/scope/expect.ts +22 -22
  173. package/src/scope/fix.ts +10 -7
  174. package/src/scope/index.ts +3 -3
  175. package/src/scope/scope.ts +2 -2
  176. package/src/scope/state.ts +2 -2
  177. package/src/server/http/apps.ts +5 -5
  178. package/src/server/http/css.ts +10 -26
  179. package/src/server/http/index.ts +30 -24
  180. package/src/server/http/response.ts +12 -5
  181. package/src/server/http/sitemap.ts +8 -8
  182. package/src/server/http/static.ts +9 -6
  183. package/src/server/http/typescript.ts +25 -25
  184. package/src/server/main.ts +7 -4
  185. package/src/test.mjs +8 -8
  186. package/src/test_all.ts +16 -13
  187. package/src/transpile.mjs +6 -18
  188. package/build/pico.css +0 -2466
  189. package/build/pico.css.map +0 -1
  190. package/lib/cjs/assert.js +0 -46
  191. package/lib/cjs/awaitable.js +0 -2
  192. package/lib/cjs/case.js +0 -9
  193. package/lib/cjs/components/button_bar.js +0 -29
  194. package/lib/cjs/components/inline_edit.js +0 -51
  195. package/lib/cjs/components/logger.js +0 -27
  196. package/lib/cjs/components/select.js +0 -6
  197. package/lib/cjs/components/test.js +0 -7
  198. package/lib/cjs/components/virtual_scroll.js +0 -102
  199. package/lib/cjs/components/virtual_scroll.test.js +0 -22
  200. package/lib/cjs/context.js +0 -48
  201. package/lib/cjs/context.test.js +0 -48
  202. package/lib/cjs/debounce.js +0 -12
  203. package/lib/cjs/diff.js +0 -58
  204. package/lib/cjs/diff.test.js +0 -41
  205. package/lib/cjs/display.js +0 -16
  206. package/lib/cjs/dom/css/border.js +0 -33
  207. package/lib/cjs/dom/css/constants.js +0 -31
  208. package/lib/cjs/dom/css/core.js +0 -31
  209. package/lib/cjs/dom/css/fstyle.js +0 -36
  210. package/lib/cjs/dom/css/sizing.js +0 -14
  211. package/lib/cjs/dom/dom.js +0 -110
  212. package/lib/cjs/dom/fc.js +0 -39
  213. package/lib/cjs/dom/fc.test.js +0 -23
  214. package/lib/cjs/dom/form/form.app.js +0 -27
  215. package/lib/cjs/dom/form/form.js +0 -49
  216. package/lib/cjs/dom/form/form.test.js +0 -1
  217. package/lib/cjs/dom/html.js +0 -119
  218. package/lib/cjs/dom/html.test.js +0 -60
  219. package/lib/cjs/dom/observable.js +0 -10
  220. package/lib/cjs/dom/observable.test.js +0 -35
  221. package/lib/cjs/dom/provide.js +0 -12
  222. package/lib/cjs/dom/router/link.js +0 -7
  223. package/lib/cjs/dom/router/router.js +0 -55
  224. package/lib/cjs/dom/svg.js +0 -69
  225. package/lib/cjs/dom/test.js +0 -13
  226. package/lib/cjs/dom/types/css.js +0 -24
  227. package/lib/cjs/dom/types/dom.js +0 -1
  228. package/lib/cjs/dom/types/html.js +0 -2
  229. package/lib/cjs/dom/xml.js +0 -8
  230. package/lib/cjs/equal.js +0 -48
  231. package/lib/cjs/equal.test.js +0 -22
  232. package/lib/cjs/flags.js +0 -52
  233. package/lib/cjs/flags.test.js +0 -37
  234. package/lib/cjs/fs.js +0 -235
  235. package/lib/cjs/fs.test.js +0 -86
  236. package/lib/cjs/fs_node.js +0 -50
  237. package/lib/cjs/fs_win.test.js +0 -10
  238. package/lib/cjs/generator.js +0 -14
  239. package/lib/cjs/generator.test.js +0 -26
  240. package/lib/cjs/is_browser.js +0 -4
  241. package/lib/cjs/loader-register.d.mts +0 -1
  242. package/lib/cjs/loader-register.d.ts +0 -1
  243. package/lib/cjs/loader-register.js +0 -4
  244. package/lib/cjs/loader-register.mjs +0 -4
  245. package/lib/cjs/loader.d.mts +0 -23
  246. package/lib/cjs/loader.mjs +0 -41
  247. package/lib/cjs/lock.js +0 -27
  248. package/lib/cjs/lock.test.js +0 -18
  249. package/lib/cjs/log.js +0 -98
  250. package/lib/cjs/observable/event.js +0 -61
  251. package/lib/cjs/observable/observable.js +0 -363
  252. package/lib/cjs/observable/observable.test.js +0 -65
  253. package/lib/cjs/package.json +0 -1
  254. package/lib/cjs/range.js +0 -11
  255. package/lib/cjs/result.js +0 -80
  256. package/lib/cjs/result.test.js +0 -78
  257. package/lib/cjs/safe.js +0 -14
  258. package/lib/cjs/scope/describe.js +0 -73
  259. package/lib/cjs/scope/display/console.js +0 -25
  260. package/lib/cjs/scope/display/dom.js +0 -30
  261. package/lib/cjs/scope/display/junit.js +0 -21
  262. package/lib/cjs/scope/execute.js +0 -91
  263. package/lib/cjs/scope/expect.js +0 -110
  264. package/lib/cjs/scope/fix.js +0 -26
  265. package/lib/cjs/scope/index.js +0 -15
  266. package/lib/cjs/scope/scope.js +0 -2
  267. package/lib/cjs/scope/state.js +0 -12
  268. package/lib/cjs/server/http/apps.js +0 -27
  269. package/lib/cjs/server/http/css.js +0 -54
  270. package/lib/cjs/server/http/index.js +0 -77
  271. package/lib/cjs/server/http/response.js +0 -45
  272. package/lib/cjs/server/http/sitemap.js +0 -46
  273. package/lib/cjs/server/http/static.js +0 -25
  274. package/lib/cjs/server/http/typescript.js +0 -44
  275. package/lib/cjs/server/main.js +0 -14
  276. package/lib/cjs/test.mjs +0 -28
  277. package/lib/cjs/test_all.js +0 -30
  278. package/lib/cjs/transpile.mjs +0 -22
  279. package/lib/esm/assert.js +0 -38
  280. package/lib/esm/awaitable.js +0 -1
  281. package/lib/esm/case.js +0 -5
  282. package/lib/esm/components/button_bar.js +0 -27
  283. package/lib/esm/components/inline_edit.js +0 -48
  284. package/lib/esm/components/logger.js +0 -22
  285. package/lib/esm/components/select.js +0 -3
  286. package/lib/esm/components/test.js +0 -3
  287. package/lib/esm/components/virtual_scroll.js +0 -94
  288. package/lib/esm/components/virtual_scroll.test.js +0 -20
  289. package/lib/esm/context.js +0 -43
  290. package/lib/esm/context.test.js +0 -46
  291. package/lib/esm/debounce.js +0 -8
  292. package/lib/esm/diff.js +0 -54
  293. package/lib/esm/diff.test.js +0 -39
  294. package/lib/esm/display.js +0 -11
  295. package/lib/esm/dom/css/border.js +0 -27
  296. package/lib/esm/dom/css/constants.js +0 -28
  297. package/lib/esm/dom/css/core.js +0 -24
  298. package/lib/esm/dom/css/fstyle.js +0 -32
  299. package/lib/esm/dom/css/sizing.js +0 -10
  300. package/lib/esm/dom/dom.js +0 -104
  301. package/lib/esm/dom/fc.js +0 -35
  302. package/lib/esm/dom/fc.test.js +0 -21
  303. package/lib/esm/dom/form/form.app.js +0 -23
  304. package/lib/esm/dom/form/form.js +0 -34
  305. package/lib/esm/dom/form/form.test.js +0 -1
  306. package/lib/esm/dom/html.js +0 -114
  307. package/lib/esm/dom/html.test.js +0 -58
  308. package/lib/esm/dom/observable.js +0 -6
  309. package/lib/esm/dom/observable.test.js +0 -33
  310. package/lib/esm/dom/provide.js +0 -7
  311. package/lib/esm/dom/router/link.js +0 -3
  312. package/lib/esm/dom/router/router.js +0 -52
  313. package/lib/esm/dom/svg.js +0 -65
  314. package/lib/esm/dom/test.js +0 -9
  315. package/lib/esm/dom/types/css.js +0 -23
  316. package/lib/esm/dom/types/dom.js +0 -1
  317. package/lib/esm/dom/types/html.js +0 -1
  318. package/lib/esm/dom/xml.js +0 -4
  319. package/lib/esm/equal.js +0 -41
  320. package/lib/esm/equal.test.js +0 -20
  321. package/lib/esm/flags.js +0 -48
  322. package/lib/esm/flags.test.js +0 -35
  323. package/lib/esm/fs.js +0 -226
  324. package/lib/esm/fs.test.js +0 -84
  325. package/lib/esm/fs_node.js +0 -45
  326. package/lib/esm/fs_win.test.js +0 -8
  327. package/lib/esm/generator.js +0 -10
  328. package/lib/esm/generator.test.js +0 -24
  329. package/lib/esm/is_browser.js +0 -1
  330. package/lib/esm/loader-register.d.mts +0 -1
  331. package/lib/esm/loader-register.mjs +0 -2
  332. package/lib/esm/loader.d.mts +0 -23
  333. package/lib/esm/loader.mjs +0 -36
  334. package/lib/esm/lock.js +0 -23
  335. package/lib/esm/lock.test.js +0 -16
  336. package/lib/esm/log.js +0 -88
  337. package/lib/esm/observable/event.js +0 -46
  338. package/lib/esm/observable/observable.js +0 -343
  339. package/lib/esm/observable/observable.test.js +0 -63
  340. package/lib/esm/range.js +0 -7
  341. package/lib/esm/result.js +0 -65
  342. package/lib/esm/result.test.js +0 -76
  343. package/lib/esm/safe.js +0 -10
  344. package/lib/esm/scope/describe.js +0 -60
  345. package/lib/esm/scope/display/console.js +0 -21
  346. package/lib/esm/scope/display/dom.js +0 -26
  347. package/lib/esm/scope/display/junit.js +0 -17
  348. package/lib/esm/scope/execute.js +0 -85
  349. package/lib/esm/scope/expect.js +0 -104
  350. package/lib/esm/scope/fix.js +0 -22
  351. package/lib/esm/scope/index.js +0 -3
  352. package/lib/esm/scope/scope.js +0 -1
  353. package/lib/esm/scope/state.js +0 -8
  354. package/lib/esm/server/http/apps.js +0 -23
  355. package/lib/esm/server/http/css.js +0 -50
  356. package/lib/esm/server/http/index.js +0 -73
  357. package/lib/esm/server/http/response.js +0 -40
  358. package/lib/esm/server/http/sitemap.js +0 -42
  359. package/lib/esm/server/http/static.js +0 -21
  360. package/lib/esm/server/http/typescript.js +0 -40
  361. package/lib/esm/server/main.js +0 -12
  362. package/lib/esm/test.mjs +0 -26
  363. package/lib/esm/test_all.js +0 -28
  364. package/lib/esm/transpile.mjs +0 -18
  365. package/src/components/test.js +0 -3
  366. package/src/loader-register.mjs +0 -3
  367. package/src/loader.mjs +0 -46
@@ -1,28 +1,5 @@
1
- /**
2
- https://github.com/frenic/csstype v3.0.11
3
- Copyright (c) 2017-2018 Fredrik Nicol
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
22
- */
23
- export {};
24
- export declare type PropertyValue<TValue> = TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ? TUnpacked : AValue> : TValue extends infer TUnpacked & {} ? TUnpacked : TValue;
25
- export declare type Fallback<T> = {
1
+ export type PropertyValue<TValue> = TValue extends Array<infer AValue> ? Array<AValue extends infer TUnpacked & {} ? TUnpacked : AValue> : TValue extends infer TUnpacked & {} ? TUnpacked : TValue;
2
+ export type Fallback<T> = {
26
3
  [P in keyof T]: T[P] | NonNullable<T[P]>[];
27
4
  };
28
5
  export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime = string & {}> {
@@ -5864,13 +5841,13 @@ export interface SvgProperties<TLength = (string & {}) | 0, TTime = string & {}>
5864
5841
  }
5865
5842
  export interface Properties<TLength = (string & {}) | 0, TTime = string & {}> extends StandardProperties<TLength, TTime>, SvgProperties<TLength, TTime> {
5866
5843
  }
5867
- export declare type AtRules = "@charset" | "@counter-style" | "@document" | "@font-face" | "@font-feature-values" | "@import" | "@keyframes" | "@layer" | "@media" | "@namespace" | "@page" | "@property" | "@scroll-timeline" | "@supports" | "@viewport";
5868
- export declare type AdvancedPseudos = "::cue" | "::cue-region" | "::part" | "::slotted" | ":dir" | ":has" | ":host" | ":host-context" | ":is" | ":lang" | ":matches()" | ":not" | ":nth-child" | ":nth-last-child" | ":nth-last-of-type" | ":nth-of-type" | ":where";
5869
- export declare type SimplePseudos = "::after" | "::backdrop" | "::before" | "::cue" | "::cue-region" | "::first-letter" | "::first-line" | "::grammar-error" | "::marker" | "::placeholder" | "::selection" | "::spelling-error" | "::target-text" | ":active" | ":after" | ":any-link" | ":before" | ":blank" | ":checked" | ":current" | ":default" | ":defined" | ":disabled" | ":empty" | ":enabled" | ":first" | ":first-child" | ":first-letter" | ":first-line" | ":first-of-type" | ":focus" | ":focus-visible" | ":focus-within" | ":fullscreen" | ":future" | ":hover" | ":in-range" | ":indeterminate" | ":invalid" | ":last-child" | ":last-of-type" | ":left" | ":link" | ":local-link" | ":nth-col" | ":nth-last-col" | ":only-child" | ":only-of-type" | ":optional" | ":out-of-range" | ":past" | ":paused" | ":picture-in-picture" | ":placeholder-shown" | ":read-only" | ":read-write" | ":required" | ":right" | ":root" | ":scope" | ":target" | ":target-within" | ":user-invalid" | ":user-valid" | ":valid" | ":visited";
5870
- export declare type Pseudos = AdvancedPseudos | SimplePseudos;
5871
- export declare type HtmlAttributes = "[abbr]" | "[accept-charset]" | "[accept]" | "[accesskey]" | "[action]" | "[align]" | "[alink]" | "[allow]" | "[allowfullscreen]" | "[allowpaymentrequest]" | "[alt]" | "[archive]" | "[async]" | "[autobuffer]" | "[autocapitalize]" | "[autocomplete]" | "[autofocus]" | "[autoplay]" | "[axis]" | "[background]" | "[behavior]" | "[bgcolor]" | "[border]" | "[bottommargin]" | "[buffered]" | "[cellpadding]" | "[cellspacing]" | "[char]" | "[charoff]" | "[charset]" | "[checked]" | "[cite]" | "[class]" | "[classid]" | "[clear]" | "[code]" | "[codebase]" | "[codetype]" | "[color]" | "[cols]" | "[colspan]" | "[command]" | "[compact]" | "[content]" | "[contenteditable]" | "[contextmenu]" | "[controls]" | "[coords]" | "[crossorigin]" | "[data]" | "[datafld]" | "[datasrc]" | "[datetime]" | "[declare]" | "[decoding]" | "[default]" | "[defer]" | "[dir]" | "[direction]" | "[dirname]" | "[disabled]" | "[download]" | "[draggable]" | "[enctype]" | "[enterkeyhint]" | "[exportparts]" | "[face]" | "[for]" | "[form]" | "[formaction]" | "[formenctype]" | "[formmethod]" | "[formnovalidate]" | "[formtarget]" | "[frame]" | "[frameborder]" | "[headers]" | "[height]" | "[hidden]" | "[high]" | "[href]" | "[hreflang]" | "[hspace]" | "[http-equiv]" | "[icon]" | "[id]" | "[imagesizes]" | "[imagesrcset]" | "[inputmode]" | "[integrity]" | "[intrinsicsize]" | "[is]" | "[ismap]" | "[itemid]" | "[itemprop]" | "[itemref]" | "[itemscope]" | "[itemtype]" | "[kind]" | "[label]" | "[lang]" | "[language]" | "[leftmargin]" | "[link]" | "[loading]" | "[longdesc]" | "[loop]" | "[low]" | "[manifest]" | "[marginheight]" | "[marginwidth]" | "[max]" | "[maxlength]" | "[mayscript]" | "[media]" | "[method]" | "[methods]" | "[min]" | "[minlength]" | "[moz-opaque]" | "[mozallowfullscreen]" | "[mozcurrentsampleoffset]" | "[msallowfullscreen]" | "[multiple]" | "[muted]" | "[name]" | "[nohref]" | "[nomodule]" | "[nonce]" | "[noresize]" | "[noshade]" | "[novalidate]" | "[nowrap]" | "[object]" | "[onafterprint]" | "[onbeforeprint]" | "[onbeforeunload]" | "[onblur]" | "[onerror]" | "[onfocus]" | "[onhashchange]" | "[onlanguagechange]" | "[onload]" | "[onmessage]" | "[onoffline]" | "[ononline]" | "[onpopstate]" | "[onredo]" | "[onresize]" | "[onstorage]" | "[onundo]" | "[onunload]" | "[open]" | "[optimum]" | "[part]" | "[ping]" | "[placeholder]" | "[played]" | "[poster]" | "[prefetch]" | "[preload]" | "[profile]" | "[radiogroup]" | "[readonly]" | "[referrerpolicy]" | "[rel]" | "[required]" | "[rev]" | "[reversed]" | "[rightmargin]" | "[rows]" | "[rowspan]" | "[rules]" | "[sandbox-allow-downloads]" | "[sandbox-allow-modals]" | "[sandbox-allow-popups-to-escape-sandbox]" | "[sandbox-allow-popups]" | "[sandbox-allow-presentation]" | "[sandbox-allow-same-origin]" | "[sandbox-allow-storage-access-by-user-activation]" | "[sandbox-allow-top-navigation-by-user-activation]" | "[sandbox]" | "[scope]" | "[scoped]" | "[scrollamount]" | "[scrolldelay]" | "[scrolling]" | "[selected]" | "[shadowroot]" | "[shape]" | "[size]" | "[sizes]" | "[slot]" | "[span]" | "[spellcheck]" | "[src]" | "[srcdoc]" | "[srclang]" | "[srcset]" | "[standby]" | "[start]" | "[style]" | "[summary]" | "[tabindex]" | "[target]" | "[text]" | "[title]" | "[topmargin]" | "[translate]" | "[truespeed]" | "[type]" | "[usemap]" | "[valign]" | "[value]" | "[valuetype]" | "[version]" | "[vlink]" | "[volume]" | "[vspace]" | "[webkitallowfullscreen]" | "[width]" | "[wrap]" | "[xmlns]";
5872
- export declare type SvgAttributes = "[accent-height]" | "[alignment-baseline]" | "[allowReorder]" | "[alphabetic]" | "[animation]" | "[arabic-form]" | "[ascent]" | "[attributeName]" | "[attributeType]" | "[azimuth]" | "[baseFrequency]" | "[baseProfile]" | "[baseline-shift]" | "[bbox]" | "[bias]" | "[by]" | "[calcMode]" | "[cap-height]" | "[class]" | "[clip-path]" | "[clip-rule]" | "[clipPathUnits]" | "[clip]" | "[color-interpolation-filters]" | "[color-interpolation]" | "[color-profile]" | "[color-rendering]" | "[color]" | "[contentScriptType]" | "[contentStyleType]" | "[cursor]" | "[cx]" | "[cy]" | "[d]" | "[descent]" | "[diffuseConstant]" | "[direction]" | "[display]" | "[divisor]" | "[document]" | "[dominant-baseline]" | "[download]" | "[dur]" | "[dx]" | "[dy]" | "[edgeMode]" | "[elevation]" | "[enable-background]" | "[fill-opacity]" | "[fill-rule]" | "[fill]" | "[filterRes]" | "[filterUnits]" | "[filter]" | "[flood-color]" | "[flood-opacity]" | "[font-family]" | "[font-size-adjust]" | "[font-size]" | "[font-stretch]" | "[font-style]" | "[font-variant]" | "[font-weight]" | "[format]" | "[fr]" | "[from]" | "[fx]" | "[fy]" | "[g1]" | "[g2]" | "[global]" | "[glyph-name]" | "[glyph-orientation-horizontal]" | "[glyph-orientation-vertical]" | "[glyphRef]" | "[gradientTransform]" | "[gradientUnits]" | "[graphical]" | "[hanging]" | "[hatchContentUnits]" | "[hatchUnits]" | "[height]" | "[horiz-adv-x]" | "[horiz-origin-x]" | "[horiz-origin-y]" | "[href]" | "[hreflang]" | "[id]" | "[ideographic]" | "[image-rendering]" | "[in2]" | "[in]" | "[k1]" | "[k2]" | "[k3]" | "[k4]" | "[k]" | "[kernelMatrix]" | "[kernelUnitLength]" | "[kerning]" | "[keyPoints]" | "[lang]" | "[lengthAdjust]" | "[letter-spacing]" | "[lighting-color]" | "[limitingConeAngle]" | "[marker-end]" | "[marker-mid]" | "[marker-start]" | "[markerHeight]" | "[markerUnits]" | "[markerWidth]" | "[maskContentUnits]" | "[maskUnits]" | "[mask]" | "[mathematical]" | "[media]" | "[mode]" | "[name]" | "[numOctaves]" | "[offset]" | "[opacity]" | "[operator]" | "[order]" | "[orient]" | "[orientation]" | "[origin]" | "[overflow]" | "[overline-position]" | "[overline-thickness]" | "[paint-order]" | "[panose-1]" | "[path]" | "[patternContentUnits]" | "[patternTransform]" | "[patternUnits]" | "[ping]" | "[pitch]" | "[pointer-events]" | "[pointsAtX]" | "[pointsAtY]" | "[pointsAtZ]" | "[points]" | "[preserveAlpha]" | "[preserveAspectRatio]" | "[primitiveUnits]" | "[r]" | "[radius]" | "[refX]" | "[refY]" | "[referrerpolicy]" | "[rel]" | "[repeatCount]" | "[requiredExtensions]" | "[requiredFeatures]" | "[rotate]" | "[rx]" | "[ry]" | "[scale]" | "[seed]" | "[shape-rendering]" | "[side]" | "[slope]" | "[solid-color]" | "[solid-opacity]" | "[spacing]" | "[specularConstant]" | "[specularExponent]" | "[spreadMethod]" | "[startOffset]" | "[stdDeviation]" | "[stemh]" | "[stemv]" | "[stitchTiles]" | "[stop-color]" | "[stop-opacity]" | "[strikethrough-position]" | "[strikethrough-thickness]" | "[string]" | "[stroke-dasharray]" | "[stroke-dashoffset]" | "[stroke-linecap]" | "[stroke-linejoin]" | "[stroke-miterlimit]" | "[stroke-opacity]" | "[stroke-width]" | "[stroke]" | "[style]" | "[surfaceScale]" | "[systemLanguage]" | "[tabindex]" | "[targetX]" | "[targetY]" | "[target]" | "[text-anchor]" | "[text-decoration]" | "[text-overflow]" | "[text-rendering]" | "[textLength]" | "[title]" | "[to]" | "[transform-origin]" | "[transform]" | "[type]" | "[u1]" | "[u2]" | "[underline-position]" | "[underline-thickness]" | "[unicode-bidi]" | "[unicode-range]" | "[unicode]" | "[units-per-em]" | "[v-alphabetic]" | "[v-hanging]" | "[v-ideographic]" | "[v-mathematical]" | "[values]" | "[vector-effect]" | "[version]" | "[vert-adv-y]" | "[vert-origin-x]" | "[vert-origin-y]" | "[viewBox]" | "[viewTarget]" | "[visibility]" | "[white-space]" | "[width]" | "[widths]" | "[word-spacing]" | "[writing-mode]" | "[x-height]" | "[x1]" | "[x2]" | "[xChannelSelector]" | "[x]" | "[y1]" | "[y2]" | "[yChannelSelector]" | "[y]" | "[z]" | "[zoomAndPan]";
5873
- export declare type Globals = "inherit" | "initial" | "revert" | "unset";
5844
+ export type AtRules = "@charset" | "@counter-style" | "@document" | "@font-face" | "@font-feature-values" | "@import" | "@keyframes" | "@layer" | "@media" | "@namespace" | "@page" | "@property" | "@scroll-timeline" | "@supports" | "@viewport";
5845
+ export type AdvancedPseudos = "::cue" | "::cue-region" | "::part" | "::slotted" | ":dir" | ":has" | ":host" | ":host-context" | ":is" | ":lang" | ":matches()" | ":not" | ":nth-child" | ":nth-last-child" | ":nth-last-of-type" | ":nth-of-type" | ":where";
5846
+ export type SimplePseudos = "::after" | "::backdrop" | "::before" | "::cue" | "::cue-region" | "::first-letter" | "::first-line" | "::grammar-error" | "::marker" | "::placeholder" | "::selection" | "::spelling-error" | "::target-text" | ":active" | ":after" | ":any-link" | ":before" | ":blank" | ":checked" | ":current" | ":default" | ":defined" | ":disabled" | ":empty" | ":enabled" | ":first" | ":first-child" | ":first-letter" | ":first-line" | ":first-of-type" | ":focus" | ":focus-visible" | ":focus-within" | ":fullscreen" | ":future" | ":hover" | ":in-range" | ":indeterminate" | ":invalid" | ":last-child" | ":last-of-type" | ":left" | ":link" | ":local-link" | ":nth-col" | ":nth-last-col" | ":only-child" | ":only-of-type" | ":optional" | ":out-of-range" | ":past" | ":paused" | ":picture-in-picture" | ":placeholder-shown" | ":read-only" | ":read-write" | ":required" | ":right" | ":root" | ":scope" | ":target" | ":target-within" | ":user-invalid" | ":user-valid" | ":valid" | ":visited";
5847
+ export type Pseudos = AdvancedPseudos | SimplePseudos;
5848
+ export type HtmlAttributes = "[abbr]" | "[accept-charset]" | "[accept]" | "[accesskey]" | "[action]" | "[align]" | "[alink]" | "[allow]" | "[allowfullscreen]" | "[allowpaymentrequest]" | "[alt]" | "[archive]" | "[async]" | "[autobuffer]" | "[autocapitalize]" | "[autocomplete]" | "[autofocus]" | "[autoplay]" | "[axis]" | "[background]" | "[behavior]" | "[bgcolor]" | "[border]" | "[bottommargin]" | "[buffered]" | "[cellpadding]" | "[cellspacing]" | "[char]" | "[charoff]" | "[charset]" | "[checked]" | "[cite]" | "[class]" | "[classid]" | "[clear]" | "[code]" | "[codebase]" | "[codetype]" | "[color]" | "[cols]" | "[colspan]" | "[command]" | "[compact]" | "[content]" | "[contenteditable]" | "[contextmenu]" | "[controls]" | "[coords]" | "[crossorigin]" | "[data]" | "[datafld]" | "[datasrc]" | "[datetime]" | "[declare]" | "[decoding]" | "[default]" | "[defer]" | "[dir]" | "[direction]" | "[dirname]" | "[disabled]" | "[download]" | "[draggable]" | "[enctype]" | "[enterkeyhint]" | "[exportparts]" | "[face]" | "[for]" | "[form]" | "[formaction]" | "[formenctype]" | "[formmethod]" | "[formnovalidate]" | "[formtarget]" | "[frame]" | "[frameborder]" | "[headers]" | "[height]" | "[hidden]" | "[high]" | "[href]" | "[hreflang]" | "[hspace]" | "[http-equiv]" | "[icon]" | "[id]" | "[imagesizes]" | "[imagesrcset]" | "[inputmode]" | "[integrity]" | "[intrinsicsize]" | "[is]" | "[ismap]" | "[itemid]" | "[itemprop]" | "[itemref]" | "[itemscope]" | "[itemtype]" | "[kind]" | "[label]" | "[lang]" | "[language]" | "[leftmargin]" | "[link]" | "[loading]" | "[longdesc]" | "[loop]" | "[low]" | "[manifest]" | "[marginheight]" | "[marginwidth]" | "[max]" | "[maxlength]" | "[mayscript]" | "[media]" | "[method]" | "[methods]" | "[min]" | "[minlength]" | "[moz-opaque]" | "[mozallowfullscreen]" | "[mozcurrentsampleoffset]" | "[msallowfullscreen]" | "[multiple]" | "[muted]" | "[name]" | "[nohref]" | "[nomodule]" | "[nonce]" | "[noresize]" | "[noshade]" | "[novalidate]" | "[nowrap]" | "[object]" | "[onafterprint]" | "[onbeforeprint]" | "[onbeforeunload]" | "[onblur]" | "[onerror]" | "[onfocus]" | "[onhashchange]" | "[onlanguagechange]" | "[onload]" | "[onmessage]" | "[onoffline]" | "[ononline]" | "[onpopstate]" | "[onredo]" | "[onresize]" | "[onstorage]" | "[onundo]" | "[onunload]" | "[open]" | "[optimum]" | "[part]" | "[ping]" | "[placeholder]" | "[played]" | "[poster]" | "[prefetch]" | "[preload]" | "[profile]" | "[radiogroup]" | "[readonly]" | "[referrerpolicy]" | "[rel]" | "[required]" | "[rev]" | "[reversed]" | "[rightmargin]" | "[rows]" | "[rowspan]" | "[rules]" | "[sandbox-allow-downloads]" | "[sandbox-allow-modals]" | "[sandbox-allow-popups-to-escape-sandbox]" | "[sandbox-allow-popups]" | "[sandbox-allow-presentation]" | "[sandbox-allow-same-origin]" | "[sandbox-allow-storage-access-by-user-activation]" | "[sandbox-allow-top-navigation-by-user-activation]" | "[sandbox]" | "[scope]" | "[scoped]" | "[scrollamount]" | "[scrolldelay]" | "[scrolling]" | "[selected]" | "[shadowroot]" | "[shape]" | "[size]" | "[sizes]" | "[slot]" | "[span]" | "[spellcheck]" | "[src]" | "[srcdoc]" | "[srclang]" | "[srcset]" | "[standby]" | "[start]" | "[style]" | "[summary]" | "[tabindex]" | "[target]" | "[text]" | "[title]" | "[topmargin]" | "[translate]" | "[truespeed]" | "[type]" | "[usemap]" | "[valign]" | "[value]" | "[valuetype]" | "[version]" | "[vlink]" | "[volume]" | "[vspace]" | "[webkitallowfullscreen]" | "[width]" | "[wrap]" | "[xmlns]";
5849
+ export type SvgAttributes = "[accent-height]" | "[alignment-baseline]" | "[allowReorder]" | "[alphabetic]" | "[animation]" | "[arabic-form]" | "[ascent]" | "[attributeName]" | "[attributeType]" | "[azimuth]" | "[baseFrequency]" | "[baseProfile]" | "[baseline-shift]" | "[bbox]" | "[bias]" | "[by]" | "[calcMode]" | "[cap-height]" | "[class]" | "[clip-path]" | "[clip-rule]" | "[clipPathUnits]" | "[clip]" | "[color-interpolation-filters]" | "[color-interpolation]" | "[color-profile]" | "[color-rendering]" | "[color]" | "[contentScriptType]" | "[contentStyleType]" | "[cursor]" | "[cx]" | "[cy]" | "[d]" | "[descent]" | "[diffuseConstant]" | "[direction]" | "[display]" | "[divisor]" | "[document]" | "[dominant-baseline]" | "[download]" | "[dur]" | "[dx]" | "[dy]" | "[edgeMode]" | "[elevation]" | "[enable-background]" | "[fill-opacity]" | "[fill-rule]" | "[fill]" | "[filterRes]" | "[filterUnits]" | "[filter]" | "[flood-color]" | "[flood-opacity]" | "[font-family]" | "[font-size-adjust]" | "[font-size]" | "[font-stretch]" | "[font-style]" | "[font-variant]" | "[font-weight]" | "[format]" | "[fr]" | "[from]" | "[fx]" | "[fy]" | "[g1]" | "[g2]" | "[global]" | "[glyph-name]" | "[glyph-orientation-horizontal]" | "[glyph-orientation-vertical]" | "[glyphRef]" | "[gradientTransform]" | "[gradientUnits]" | "[graphical]" | "[hanging]" | "[hatchContentUnits]" | "[hatchUnits]" | "[height]" | "[horiz-adv-x]" | "[horiz-origin-x]" | "[horiz-origin-y]" | "[href]" | "[hreflang]" | "[id]" | "[ideographic]" | "[image-rendering]" | "[in2]" | "[in]" | "[k1]" | "[k2]" | "[k3]" | "[k4]" | "[k]" | "[kernelMatrix]" | "[kernelUnitLength]" | "[kerning]" | "[keyPoints]" | "[lang]" | "[lengthAdjust]" | "[letter-spacing]" | "[lighting-color]" | "[limitingConeAngle]" | "[marker-end]" | "[marker-mid]" | "[marker-start]" | "[markerHeight]" | "[markerUnits]" | "[markerWidth]" | "[maskContentUnits]" | "[maskUnits]" | "[mask]" | "[mathematical]" | "[media]" | "[mode]" | "[name]" | "[numOctaves]" | "[offset]" | "[opacity]" | "[operator]" | "[order]" | "[orient]" | "[orientation]" | "[origin]" | "[overflow]" | "[overline-position]" | "[overline-thickness]" | "[paint-order]" | "[panose-1]" | "[path]" | "[patternContentUnits]" | "[patternTransform]" | "[patternUnits]" | "[ping]" | "[pitch]" | "[pointer-events]" | "[pointsAtX]" | "[pointsAtY]" | "[pointsAtZ]" | "[points]" | "[preserveAlpha]" | "[preserveAspectRatio]" | "[primitiveUnits]" | "[r]" | "[radius]" | "[refX]" | "[refY]" | "[referrerpolicy]" | "[rel]" | "[repeatCount]" | "[requiredExtensions]" | "[requiredFeatures]" | "[rotate]" | "[rx]" | "[ry]" | "[scale]" | "[seed]" | "[shape-rendering]" | "[side]" | "[slope]" | "[solid-color]" | "[solid-opacity]" | "[spacing]" | "[specularConstant]" | "[specularExponent]" | "[spreadMethod]" | "[startOffset]" | "[stdDeviation]" | "[stemh]" | "[stemv]" | "[stitchTiles]" | "[stop-color]" | "[stop-opacity]" | "[strikethrough-position]" | "[strikethrough-thickness]" | "[string]" | "[stroke-dasharray]" | "[stroke-dashoffset]" | "[stroke-linecap]" | "[stroke-linejoin]" | "[stroke-miterlimit]" | "[stroke-opacity]" | "[stroke-width]" | "[stroke]" | "[style]" | "[surfaceScale]" | "[systemLanguage]" | "[tabindex]" | "[targetX]" | "[targetY]" | "[target]" | "[text-anchor]" | "[text-decoration]" | "[text-overflow]" | "[text-rendering]" | "[textLength]" | "[title]" | "[to]" | "[transform-origin]" | "[transform]" | "[type]" | "[u1]" | "[u2]" | "[underline-position]" | "[underline-thickness]" | "[unicode-bidi]" | "[unicode-range]" | "[unicode]" | "[units-per-em]" | "[v-alphabetic]" | "[v-hanging]" | "[v-ideographic]" | "[v-mathematical]" | "[values]" | "[vector-effect]" | "[version]" | "[vert-adv-y]" | "[vert-origin-x]" | "[vert-origin-y]" | "[viewBox]" | "[viewTarget]" | "[visibility]" | "[white-space]" | "[width]" | "[widths]" | "[word-spacing]" | "[writing-mode]" | "[x-height]" | "[x1]" | "[x2]" | "[xChannelSelector]" | "[x]" | "[y1]" | "[y2]" | "[yChannelSelector]" | "[y]" | "[z]" | "[zoomAndPan]";
5850
+ export type Globals = "inherit" | "initial" | "revert" | "unset";
5874
5851
  export declare namespace Property {
5875
5852
  type AccentColor = Globals | DataType.Color | "auto";
5876
5853
  type AlignContent = Globals | DataType.ContentDistribution | DataType.ContentPosition | "baseline" | "normal" | (string & {});
@@ -6610,3 +6587,4 @@ declare namespace DataType {
6610
6587
  type ViewportLength<TLength> = TLength | "auto" | (string & {});
6611
6588
  type VisualBox = "border-box" | "content-box" | "padding-box";
6612
6589
  }
6590
+ export {};
@@ -1,4 +1,4 @@
1
- import { Properties } from "./css";
1
+ import type { Properties } from "./css";
2
2
  export interface AriaAttributes {
3
3
  [_: `aria-${string}`]: string;
4
4
  }
@@ -6,11 +6,9 @@ export interface Sized {
6
6
  height?: number | string;
7
7
  width?: number | string;
8
8
  }
9
- export declare type MimeTypeString = `${string}/${string}`;
10
- export declare type ReferrerPolicy = "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
11
- export interface EventHandler {
12
- (k: Event): void;
13
- }
9
+ export type MimeTypeString = `${string}/${string}`;
10
+ export type ReferrerPolicy = "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
11
+ export type EventHandler = (k: Event) => void;
14
12
  export interface GlobalEvents {
15
13
  abort: EventHandler;
16
14
  autocomplete: EventHandler;
@@ -1,8 +1,11 @@
1
1
  export declare function compareArrays<T>(equal: (a: T, b: T, partial: boolean) => boolean): (A: T[], B: T[], partial?: boolean) => boolean;
2
2
  export declare const equalArrays: (A: any[], B: any[], partial?: boolean) => boolean;
3
- export declare const matchArrays: <A>(a: A[], b: A[], partial?: boolean) => boolean;
3
+ export declare function matchArrays<T>(a: T[], b: T[], partial?: boolean): boolean;
4
4
  export declare function asArray<T = unknown>(a: Record<string, T>): [string, T][];
5
- export declare const matchObjects: (a: {}, b: {}, partial?: boolean) => boolean;
6
- export declare function equals<A>(a: A | A[], b: A | A[], partial?: boolean): boolean;
7
- export declare type Equals<T1, T2> = (<T>() => (T extends T2 ? true : false)) extends (<T>() => (T extends T1 ? true : false)) ? true : false;
8
- export declare type Not<B extends boolean> = B extends true ? false : true;
5
+ export declare const matchObjects: (a: object, b: object & {
6
+ [k: string]: unknown;
7
+ }, partial?: boolean) => boolean;
8
+ export declare function equals<T>(a: T, b: T, partial?: boolean): boolean;
9
+ export declare function equals<T>(a: T[], b: T[], partial?: boolean): boolean;
10
+ export type Equals<T1, T2> = (<T>() => T extends T2 ? true : false) extends <T>() => T extends T1 ? true : false ? true : false;
11
+ export type Not<B extends boolean> = B extends true ? false : true;
@@ -1,6 +1,6 @@
1
1
  export declare const parse: (parseArgs: string[]) => {
2
2
  readonly argv0: string;
3
- readonly args: readonly string[];
3
+ readonly args: ReadonlyArray<string>;
4
4
  get(flag: string, def?: boolean): boolean;
5
5
  asNumber(param: string, def?: number): number;
6
6
  asString(param: string, def?: string): string;
package/lib/esm/fs.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare type PathLike = string;
1
+ export type PathLike = string;
2
2
  export interface PlatformParts {
3
3
  SEP: string;
4
4
  WD: string;
@@ -27,9 +27,9 @@ export interface FileSystemAdapter {
27
27
  rm(path: PathLike): Promise<void>;
28
28
  }
29
29
  export declare class FileSystem implements FileSystemAdapter {
30
- protected adapter: FileSystemAdapter;
31
30
  protected wd: string;
32
31
  protected stack: string[];
32
+ protected adapter: FileSystemAdapter;
33
33
  constructor(adapter?: FileSystemAdapter);
34
34
  cwd(): string;
35
35
  cd(dir: string): void;
@@ -60,7 +60,7 @@ export declare class RecordFileSystemAdapter implements FileSystemAdapter {
60
60
  export declare class LocalStorageFileSystemAdapter extends RecordFileSystemAdapter {
61
61
  constructor();
62
62
  }
63
- export declare type ObjectFileSystem = {
63
+ export type ObjectFileSystem = {
64
64
  [k: string]: string | ObjectFileSystem;
65
65
  };
66
66
  export declare class ObjectFileSystemAdapter extends RecordFileSystemAdapter {
@@ -1,4 +1,4 @@
1
- import { FileSystem, FileSystemAdapter, Stats } from "./fs.js";
1
+ import { FileSystem, type FileSystemAdapter, type Stats } from "./fs.ts";
2
2
  export declare class NodeFileSystem extends FileSystem {
3
3
  constructor(cd?: string);
4
4
  }
package/lib/esm/lock.d.ts CHANGED
@@ -1 +1 @@
1
- export declare function lock(fn: Function): Function;
1
+ export declare function lock<CF extends (...args: unknown[]) => unknown>(fn: CF): CF;
package/lib/esm/log.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { Display } from "./display.js";
2
- export interface Log {
3
- (message: Display, data?: {}): void;
4
- }
1
+ import { type Display } from "./display.ts";
2
+ export type Log = (message: Display, data?: object) => void;
5
3
  export interface Logger {
4
+ logAt: (level: number, prefix: string, fn?: (logLine: string) => void) => Log;
6
5
  level: number;
7
6
  format: <D extends {
8
7
  name: string;
@@ -12,6 +11,7 @@ export interface Logger {
12
11
  source: string;
13
12
  }>(data: D) => string;
14
13
  console: Console;
14
+ default: (logLine: string) => void;
15
15
  debug: Log;
16
16
  info: Log;
17
17
  warn: Log;
@@ -35,7 +35,7 @@ export declare function basicLogFormatter(data: {
35
35
  message: string;
36
36
  source: string;
37
37
  }): string;
38
- declare type LoggerFormatFn = <D extends {
38
+ type LoggerFormatFn = <D extends {
39
39
  name: string;
40
40
  prefix: string;
41
41
  level: number;
@@ -47,8 +47,8 @@ export declare function getLogger(name: string, args?: LoggerFormatFn | {
47
47
  console?: Console;
48
48
  }): Logger;
49
49
  export declare const DEFAULT_LOGGER: Logger;
50
- export declare function debug(message: Display, data?: {}): void;
51
- export declare function info(message: Display, data?: {}): void;
52
- export declare function warn(message: Display, data?: {}): void;
53
- export declare function error(message: Display, data?: {}): void;
50
+ export declare function debug(message: Display, data?: object): void;
51
+ export declare function info(message: Display, data?: object): void;
52
+ export declare function warn(message: Display, data?: object): void;
53
+ export declare function error(message: Display, data?: object): void;
54
54
  export {};
@@ -1,4 +1,4 @@
1
- import { Observable } from "./observable.js";
1
+ import type { Observable } from "./observable.ts";
2
2
  export interface Next<T> {
3
3
  value: T;
4
4
  completed: false;
@@ -17,7 +17,7 @@ export interface Failed {
17
17
  completed: true;
18
18
  failed: true;
19
19
  }
20
- export declare type Event<T, E> = Next<T> | Error<E> | Completed | Failed;
20
+ export type Event<T, E> = Next<T> | Error<E> | Completed | Failed;
21
21
  export interface EventSubscriber<T, E> {
22
22
  next(e: Event<T, E>): void;
23
23
  }
@@ -1,10 +1,11 @@
1
- import { Logger } from "../log.js";
1
+ import type { Display } from "../display.ts";
2
+ import { type Logger } from "../log.ts";
2
3
  export interface FullSubscriber<T, E> {
3
- next?: (t: T) => void | Promise<undefined>;
4
- error?: (e: E) => void | Promise<undefined>;
5
- complete?: () => void | Promise<undefined>;
4
+ next?: (t: T) => void | Promise<void>;
5
+ error?: (e: E) => void | Promise<void>;
6
+ complete?: () => void | Promise<void>;
6
7
  }
7
- export declare type Subscriber<T, E> = FullSubscriber<T, E> | ((t: T) => void | Promise<undefined>);
8
+ export type Subscriber<T, E> = FullSubscriber<T, E> | ((t: T) => void | Promise<void>);
8
9
  export interface Subscription {
9
10
  unsubscribe(): void;
10
11
  }
@@ -21,13 +22,14 @@ export interface Observable<T, E = unknown> {
21
22
  }
22
23
  export declare const Observable: {
23
24
  of<T, E>(...ts: T[]): Observable<T, E>;
24
- combineLatest<T1, T2, E_1>(o1: Observable<T1, E_1>, o2: Observable<T2, E_1>): Observable<[T1, T2], E_1>;
25
+ combineLatest<T1, T2, E>(o1: Observable<T1, E>, o2: Observable<T2, E>): Observable<[T1, T2], E>;
25
26
  };
26
27
  interface Scheduler {
27
- execute(fn: () => (void | Promise<undefined>)[]): void | Promise<undefined>;
28
+ execute(fn: () => (void | Promise<void>)[]): void | Promise<void>;
28
29
  }
29
30
  export declare const AsyncScheduler: Scheduler;
30
31
  export declare const SyncScheduler: Scheduler;
32
+ export declare function setDefaultScheduler(scheduler: Scheduler): void;
31
33
  export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T, E>, Observable<T, E> {
32
34
  #private;
33
35
  private readonly scheduler;
@@ -35,10 +37,10 @@ export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T
35
37
  get hot(): boolean;
36
38
  get cold(): boolean;
37
39
  constructor(scheduler?: Scheduler);
38
- onWarm(fn: Function): void;
39
- next(t: T | T2): void | Promise<undefined>;
40
- error(e: E): void | Promise<undefined>;
41
- complete(): void | Promise<undefined>;
40
+ onWarm(fn: CallableFunction): void;
41
+ next(t: T | T2): void | Promise<void>;
42
+ error(e: E): void | Promise<void>;
43
+ complete(): void | Promise<void>;
42
44
  subscribe(subscriber: Subscriber<T, E>): Subscription;
43
45
  pipe<T1>(o1: Subscriber<T, E> & Observable<T1, E>): Observable<T1, E>;
44
46
  pipe<T1, T2>(o1: Subscriber<T, E> & Observable<T1, E>, o2: Subscriber<T1, E> & Observable<T2, E>): Observable<T2, E>;
@@ -52,44 +54,44 @@ export declare class Subject<T, E = unknown, T2 = T> implements FullSubscriber<T
52
54
  export declare class BehaviorSubject<T, E = unknown, T2 = T> extends Subject<T, E, T2> {
53
55
  #private;
54
56
  constructor(t: T, scheduler?: Scheduler);
55
- next(t: T | T2): void | Promise<undefined>;
57
+ next(t: T | T2): void | Promise<void>;
56
58
  subscribe(subscriber: Subscriber<T, E>): Subscription;
57
59
  get current(): T;
58
60
  }
59
61
  export declare class ReplaySubject<T, E = unknown> extends Subject<T, E> {
60
62
  #private;
61
- private readonly n;
63
+ readonly n: number;
62
64
  constructor(n: number, scheduler?: Scheduler);
63
- next(t: T): void | Promise<undefined>;
65
+ next(t: T): void | Promise<void>;
64
66
  subscribe(subscriber: Subscriber<T, E>): Subscription;
65
67
  }
66
68
  export declare function eventListener<E extends Event>(): (Subject<E, unknown, E> | ((e: E) => void))[];
67
69
  export declare class EventHandler<E extends Event> extends Subject<E> {
68
70
  private readonly eventFn;
69
- constructor(eventFn: (e: E) => void | Promise<undefined>);
70
- next(e: E): void;
71
+ constructor(eventFn: (e: E) => void | Promise<void>);
72
+ next(e: E): Promise<undefined>;
71
73
  }
72
- export declare const watch: <T, E>(logger?: Logger) => (observable: Observable<T, E>) => void;
74
+ export declare const watch: <T extends Display, E extends Display>(logger?: Logger) => (observable: Observable<T, E>) => void;
73
75
  declare class MapOperator<T, U, E> extends Subject<U, E, T> implements FullSubscriber<T, E>, Observable<U, E> {
74
76
  private readonly mapFn;
75
77
  constructor(mapFn: (t: T) => U);
76
- next(t: T): void | Promise<undefined>;
78
+ next(t: T): void | Promise<void>;
77
79
  }
78
80
  declare class FilterOperator<T, E> extends Subject<T, E> implements FullSubscriber<T, E>, Observable<T, E> {
79
81
  private readonly filterFn;
80
82
  constructor(filterFn: (t: T) => boolean);
81
- next(t: T): void | Promise<undefined>;
83
+ next(t: T): void | Promise<void>;
82
84
  }
83
85
  declare class DistinctOperator<T, E> extends Subject<T, E> implements FullSubscriber<T, E>, Observable<T, E> {
84
86
  #private;
85
87
  private readonly distinctFn;
86
88
  constructor(distinctFn?: (t1: T, t2: T) => boolean);
87
- next(t: T): void | Promise<undefined>;
89
+ next(t: T): void | Promise<void>;
88
90
  }
89
91
  declare class ReduceOperator<A, T, E> extends BehaviorSubject<A, E, T> {
90
92
  private readonly fn;
91
93
  constructor(fn: (acc: A, t: T) => A, init: A);
92
- next(t: T): void | Promise<undefined>;
94
+ next(t: T): void | Promise<void>;
93
95
  }
94
96
  export declare class TakeUntilOperator<T, E> extends Subject<T, E> {
95
97
  constructor(o: Observable<unknown, unknown>);
@@ -97,20 +99,20 @@ export declare class TakeUntilOperator<T, E> extends Subject<T, E> {
97
99
  export declare class TapOperator<T, E> extends Subject<T, E> {
98
100
  private readonly subscriber;
99
101
  constructor(fn: Subscriber<T, E>);
100
- next(t: T): void | Promise<undefined>;
101
- error(e: E): void | Promise<undefined>;
102
- complete(): void | Promise<undefined>;
102
+ next(t: T): void | Promise<void>;
103
+ error(e: E): void | Promise<void>;
104
+ complete(): void | Promise<void>;
103
105
  }
104
106
  declare class FirstOperator<T, E> extends Subject<T, E> {
105
- next(t: T): void | Promise<undefined>;
107
+ next(t: T): void | Promise<void>;
106
108
  }
107
109
  declare class LastOperator<T, E = Error> extends Subject<T, E> {
108
110
  #private;
109
111
  next(t: T): void;
110
- complete(): void | Promise<undefined>;
112
+ complete(): void | Promise<void>;
111
113
  }
112
114
  export declare const filter: <T, E>(fn: (t: T) => boolean) => FilterOperator<T, E>;
113
- export declare const distinct: <T, E>(fn?: ((t1: T, t2: T) => boolean) | undefined) => DistinctOperator<T, E>;
115
+ export declare const distinct: <T, E>(fn?: (t1: T, t2: T) => boolean) => DistinctOperator<T, E>;
114
116
  export declare const first: <T, E>() => FirstOperator<T, E>;
115
117
  export declare const last: <T, E>() => LastOperator<T, E>;
116
118
  export declare const map: <T1, T2, E>(fn: (t: T1) => T2) => MapOperator<T1, T2, E>;
@@ -120,13 +122,13 @@ export declare const takeUntil: <T, E>(o: Observable<unknown, unknown>) => TakeU
120
122
  export declare const tap: <T, E>(fn: Subscriber<T, E>) => TapOperator<T, E>;
121
123
  export declare const operator: {
122
124
  filter: <T, E>(fn: (t: T) => boolean) => FilterOperator<T, E>;
123
- distinct: <T_1, E_1>(fn?: ((t1: T_1, t2: T_1) => boolean) | undefined) => DistinctOperator<T_1, E_1>;
124
- first: <T_2, E_2>() => FirstOperator<T_2, E_2>;
125
- last: <T_3, E_3>() => LastOperator<T_3, E_3>;
126
- map: <T1, T2, E_4>(fn: (t: T1) => T2) => MapOperator<T1, T2, E_4>;
127
- replay: <T_4, E_5>(n: number) => ReplaySubject<T_4, E_5>;
128
- reduce: <A, T_5, E_6>(fn: (acc: A, t: T_5) => A, init: A) => ReduceOperator<A, T_5, E_6>;
129
- takeUntil: <T_6, E_7>(o: Observable<unknown, unknown>) => TakeUntilOperator<T_6, E_7>;
130
- tap: <T_7, E_8>(fn: Subscriber<T_7, E_8>) => TapOperator<T_7, E_8>;
125
+ distinct: <T, E>(fn?: (t1: T, t2: T) => boolean) => DistinctOperator<T, E>;
126
+ first: <T, E>() => FirstOperator<T, E>;
127
+ last: <T, E>() => LastOperator<T, E>;
128
+ map: <T1, T2, E>(fn: (t: T1) => T2) => MapOperator<T1, T2, E>;
129
+ replay: <T, E>(n: number) => ReplaySubject<T, E>;
130
+ reduce: <A, T, E>(fn: (acc: A, t: T) => A, init: A) => ReduceOperator<A, T, E>;
131
+ takeUntil: <T, E>(o: Observable<unknown, unknown>) => TakeUntilOperator<T, E>;
132
+ tap: <T, E>(fn: Subscriber<T, E>) => TapOperator<T, E>;
131
133
  };
132
134
  export {};
@@ -1,31 +1,31 @@
1
- export declare type None = null;
2
- export declare type Some<T> = T;
3
- export declare type Option<T> = Some<T> | None;
4
- export declare type Err<E = Error> = {
5
- err: E;
6
- map: <U>(fn: (t: unknown) => Result<U>) => Result<U>;
7
- };
8
- export declare type Ok<T> = {
9
- ok: T;
10
- map: <U>(fn: (t: T) => Result<U>) => Result<U>;
11
- };
12
- export declare type Result<T, E = Error> = Ok<T> | Err<E>;
13
- export declare const isNone: <T>(s: Option<T>) => s is null;
14
- export declare const isSome: <T>(s: Option<T>) => s is T;
1
+ export declare const isNone: <T>(s: Option<T>) => s is None;
2
+ export declare const isSome: <T>(s: Option<T>) => s is Some<T>;
15
3
  export declare function None<T = unknown>(_?: T): Option<T>;
16
4
  export declare function Some<T>(t: Option<T>): Option<T>;
17
5
  export declare function Some<T>(t: T): Option<T>;
18
6
  export declare const isOk: <T, E>(t: Result<T, E>) => t is Ok<T>;
19
7
  export declare const isErr: <T, E>(e: Result<T, E>) => e is Err<E>;
20
8
  export declare const isResult: <T, E>(t: Result<T, E>) => t is Result<T, E>;
21
- export declare function Ok<T>(ok: Ok<T>): T;
22
- export declare function Ok<T>(t?: T): Ok<T>;
23
- export declare function Err<E>(e: Err<E>): E;
24
- export declare function Err<E>(e: E): Err<E>;
25
- export declare function Err<E>(e: string): Err<E>;
9
+ export declare function Ok<T, E = unknown>(ok: Ok<T>): T;
10
+ export declare function Ok<T, E = unknown>(t?: T): Ok<T>;
11
+ export declare function Err<T, E>(e: Err<E>): E;
12
+ export declare function Err<T, E>(e: E): Err<E>;
13
+ export declare function Err<T, E>(e: string): Err<E>;
26
14
  export declare function unwrap<T, E>(result: Result<T, E>): T | never;
27
15
  export declare function unwrap<O>(some: Option<O>): O | never;
28
16
  export declare function unwrapOr<T, E>(result: Result<T, E>, def: T): T;
29
17
  export declare function unwrapOr<T>(some: Some<T>, def: T): T;
30
- export declare function unwrapOrElse<T, E>(result: Result<T, Error>, def: () => T): T;
31
- export declare function unwrapOrElse<T>(some: Some<T>, def: () => T): T;
18
+ export declare function unwrapOrElse<T, E>(result: Result<T, E>, def: () => T): T;
19
+ export declare function unwrapOrElse<T, E>(some: Some<T>, def: () => T): T;
20
+ export type None = null;
21
+ export type Some<T> = T;
22
+ export type Option<T> = Some<T> | None;
23
+ export type Err<E = Error> = {
24
+ err: E;
25
+ map: <U>(fn: (t: unknown) => Result<U>) => Result<U>;
26
+ };
27
+ export type Ok<T> = {
28
+ ok: T;
29
+ map: <U>(fn: (t: T) => Result<U>) => Result<U>;
30
+ };
31
+ export type Result<T, E = Error> = Ok<T> | Err<E>;
package/lib/esm/safe.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const safe: <A extends unknown[], R>(fn: (...args: A) => R, r: R) => (...args: A) => R;
1
+ export declare const safe: <A extends unknown[], R>(fn: (...args: A) => R, r: R) => ((...args: A) => R);
@@ -1,4 +1,4 @@
1
- import { TestCase } from "./scope.js";
1
+ import type { TestCase } from "./scope.ts";
2
2
  export declare const beforeall: unique symbol;
3
3
  export declare const beforeeach: unique symbol;
4
4
  export declare const afterall: unique symbol;
@@ -6,10 +6,10 @@ export declare const aftereach: unique symbol;
6
6
  export declare function rootCases(): TestCase;
7
7
  export declare function getTotalCases(): number;
8
8
  export declare function getSkippedCases(): number;
9
- export declare function describe(title: string, block: Function): void;
10
- export declare function it(title: string, block: Function): void;
9
+ export declare function describe(title: string, block: CallableFunction): void;
10
+ export declare function it(title: string, block: CallableFunction): void;
11
11
  export declare namespace it {
12
- var skip: (title: string, _block: Function) => void;
12
+ var skip: (title: string, _block: CallableFunction) => void;
13
13
  }
14
14
  export declare function beforeEach(fn: () => void): void;
15
15
  export declare function beforeAll(fn: () => void): void;
@@ -1,2 +1,2 @@
1
- import { TestResult } from "../scope.js";
1
+ import type { TestResult } from "../scope.ts";
2
2
  export declare function onConsole(results: TestResult): void;
@@ -1,3 +1,3 @@
1
- import { DOMElement } from "../../dom/dom.js";
2
- import { TestResult } from "../scope.js";
1
+ import type { DOMElement } from "../../dom/dom.ts";
2
+ import type { TestResult } from "../scope.ts";
3
3
  export declare function displayStatistics(results: TestResult, root?: DOMElement): void;
@@ -1,2 +1,2 @@
1
- import { TestResult } from "../scope.js";
1
+ import type { TestResult } from "../scope.ts";
2
2
  export declare function asXML(results: TestResult): string;
@@ -1,5 +1,5 @@
1
- import { TestResult, TestSummary } from "./scope.js";
2
- export declare function execute(cases?: import("./scope.js").TestCase): Promise<TestResult>;
1
+ import type { TestResult, TestSummary } from "./scope.ts";
2
+ export declare function execute(cases?: import("./scope.ts").TestCase): Promise<TestResult>;
3
3
  export declare function getError({ error }: TestResult): number | TestResult | TestSummary | "unknown error";
4
4
  export interface FlatResult {
5
5
  test: string;
@@ -1,3 +1,3 @@
1
- export { expect } from "./expect.js";
2
- export { fix } from "./fix.js";
3
- export { afterAll, afterEach, beforeAll, beforeEach, cleanState, describe, it, } from "./describe.js";
1
+ export { expect } from "./expect.ts";
2
+ export { fix } from "./fix.ts";
3
+ export { afterAll, afterEach, beforeAll, beforeEach, cleanState, describe, it, } from "./describe.ts";
@@ -1,6 +1,6 @@
1
1
  export interface TestCase {
2
- [k: string]: Function | TestCase;
3
- [k: symbol]: Function;
2
+ [k: string]: CallableFunction | TestCase;
3
+ [k: symbol]: CallableFunction;
4
4
  }
5
5
  export interface TestResult {
6
6
  executed: number;
@@ -8,7 +8,7 @@ export interface TestResult {
8
8
  failed: number;
9
9
  [k: string]: TestResult | TestSummary | number;
10
10
  }
11
- export declare type TestSummary = TestFailed | TestPassed;
11
+ export type TestSummary = TestFailed | TestPassed;
12
12
  export interface TestFailed {
13
13
  error: unknown;
14
14
  }
@@ -1,2 +1,2 @@
1
- import { Awaitable } from "../awaitable.js";
1
+ import type { Awaitable } from "../awaitable.ts";
2
2
  export declare function cleanState<State extends {}>(init: () => Awaitable<State>, runner: (action: () => Promise<void>) => void): State;
@@ -1,4 +1,4 @@
1
- import { MiddlewareFactory } from "./index.js";
1
+ import type { MiddlewareFactory } from "./index.ts";
2
2
  /**
3
3
  * Searches up the request path until the first index is found.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { MiddlewareFactory } from "./index.js";
1
+ import type { MiddlewareFactory } from "./index.ts";
2
2
  /**
3
3
  * Serves .css files statically. Finds .sass files and transpiles them to css.
4
4
  */
@@ -1,21 +1,16 @@
1
1
  #!/usr/bin/env node
2
- /// <reference types="node" />
3
- /// <reference types="node" />
4
- import { IncomingMessage, ServerResponse } from "http";
2
+ import { type IncomingMessage, type ServerResponse } from "node:http";
5
3
  export interface StaticResponse {
6
4
  status: 200 | 404 | 500;
7
5
  content: Buffer;
8
6
  contentType: string;
9
7
  contentLength?: number;
8
+ headers?: Map<string, string>;
10
9
  }
11
10
  export interface ServerConfig {
12
11
  root: string;
13
12
  scopes?: Record<`@${string}`, string>;
14
13
  }
15
- export interface MiddlewareFactory {
16
- (config: ServerConfig): Promise<StaticMiddleware>;
17
- }
18
- export interface StaticMiddleware {
19
- (req: IncomingMessage): Promise<undefined | (() => Promise<StaticResponse>)>;
20
- }
14
+ export type MiddlewareFactory = (config: ServerConfig) => Promise<StaticMiddleware>;
15
+ export type StaticMiddleware = (req: IncomingMessage) => Promise<undefined | (() => Promise<StaticResponse>)>;
21
16
  export declare const makeServer: (config: ServerConfig, middlewares?: MiddlewareFactory[]) => Promise<import("http").Server<typeof IncomingMessage, typeof ServerResponse>>;
@@ -1,4 +1,4 @@
1
- import { Stats } from "fs";
2
- import { StaticResponse } from ".";
1
+ import type { Stats } from "node:fs";
2
+ import type { StaticResponse } from ".";
3
3
  export declare const fileResponse: (filename: string, stat?: Stats, status?: 200 | 404 | 500) => () => Promise<StaticResponse>;
4
- export declare const contentResponse: (content: string, contentType: string, status?: 200 | 404 | 500) => () => Promise<StaticResponse>;
4
+ export declare const contentResponse: (content: string, contentType: string, status?: 200 | 404 | 500, headers?: Map<string, string>) => () => Promise<StaticResponse>;
@@ -1,2 +1,2 @@
1
- import { MiddlewareFactory } from "./index.js";
1
+ import type { MiddlewareFactory } from "./index.ts";
2
2
  export declare const sitemap: MiddlewareFactory;
@@ -1,2 +1,2 @@
1
- import type { MiddlewareFactory } from "./index.js";
1
+ import type { MiddlewareFactory } from "./index.ts";
2
2
  export declare const staticFileServer: MiddlewareFactory;
@@ -1,4 +1,4 @@
1
- import { MiddlewareFactory } from "./index.js";
1
+ import type { MiddlewareFactory } from "./index.ts";
2
2
  /**
3
3
  * Serves .js files statically. Finds .ts files and transpiles them to JS.
4
4
  */