Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typed-dom

Package Overview
Dependencies
Maintainers
1
Versions
350
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-dom - npm Package Compare versions

Comparing version 0.0.261 to 0.0.262

2

dist/typed-dom.js

@@ -1,2 +0,2 @@

/*! typed-dom v0.0.261 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
/*! typed-dom v0.0.262 https://github.com/falsandtru/typed-dom | (c) 2016, falsandtru | (Apache-2.0 AND MPL-2.0) License */
require = function () {

@@ -3,0 +3,0 @@ function r(e, n, t) {

{
"name": "typed-dom",
"version": "0.0.261",
"version": "0.0.262",
"description": "A value-level and type-level DOM builder.",

@@ -5,0 +5,0 @@ "private": false,

@@ -331,3 +331,3 @@ # typed-dom

```ts
import { API, Attrs, html } from 'typed-dom';
import { API, Attrs, Factory, html } from 'typed-dom';

@@ -350,3 +350,3 @@ const i18n = i18next.createInstance({

<T extends keyof HTMLElementTagNameMap>(
factory: (tag: T, attrs?: Attrs) => HTMLElementTagNameMap[T],
factory: Factory<HTMLElementTagNameMap>,
tag: T,

@@ -353,0 +353,0 @@ attrs: Attrs,

@@ -26,25 +26,29 @@ import { Symbol } from 'spica/global';

interface BuilderFunction<M extends TagNameMap, F extends Factory<M>> {
<T extends K<M>, C extends El.Children.Void >(tag: T, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<T extends K<M>, C extends Empty >(tag: T, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Array>;
<T extends K<M>, C extends El.Children.Text >(tag: T, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Text>;
<T extends K<M>, C extends El.Children.Array >(tag: T, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, Readonly<C>>;
<T extends K<M>, C extends El.Children.Struct>(tag: T, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El.Children.Void >(tag: T, attrs?: Attrs, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<T extends K<M>, C extends Empty >(tag: T, attrs?: Attrs, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Array>;
<T extends K<M>, C extends El.Children.Text >(tag: T, attrs?: Attrs, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Text>;
<T extends K<M>, C extends El.Children.Array >(tag: T, attrs?: Attrs, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, Readonly<C>>;
<T extends K<M>, C extends El.Children.Struct>(tag: T, attrs?: Attrs, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El.Children.Void >(tag: T, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<T extends K<M>, C extends Empty >(tag: T, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Array>;
<T extends K<M>, C extends El.Children.Void >(tag: T, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<T extends K<M>, C extends El.Children.Text >(tag: T, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Text>;
<T extends K<M>, C extends El.Children.Array >(tag: T, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, Readonly<C>>;
<T extends K<M>, C extends El.Children.Struct>(tag: T, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, C>;
<T extends K<M>, C extends El.Children.Void >(tag: T, attrs: Attrs | undefined, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<T extends K<M>, C extends Empty >(tag: T, attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Array>;
<T extends K<M>, C extends El.Children.Void >(tag: T, attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<T extends K<M>, C extends El.Children.Text >(tag: T, attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Text>;
<T extends K<M>, C extends El.Children.Array >(tag: T, attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, Readonly<C>>;
<T extends K<M>, C extends El.Children.Struct>(tag: T, attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, C>;
}
interface BuilderMethod<M extends TagNameMap, F extends Factory<M>, T extends K<M>> {
<C extends El.Children.Void >( factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<C extends Empty >( children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Array>;
<C extends El.Children.Text >( children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Text>;
<C extends El.Children.Array >( children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, Readonly<C>>;
<C extends El.Children.Struct>( children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, C>;
<C extends El.Children.Void >( attrs?: Attrs, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<C extends Empty >( attrs?: Attrs, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Array>;
<C extends El.Children.Text >( attrs?: Attrs, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Text>;
<C extends El.Children.Array >( attrs?: Attrs, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, Readonly<C>>;
<C extends El.Children.Struct>( attrs?: Attrs, children?: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, C>;
<C extends El.Children.Void >( factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<C extends Empty >( children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Array>;
<C extends El.Children.Void >( children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<C extends El.Children.Text >( children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Text>;
<C extends El.Children.Array >( children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, Readonly<C>>;
<C extends El.Children.Struct>( children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, C>;
<C extends El.Children.Void >( attrs: Attrs | undefined, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<C extends Empty >( attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Array>;
<C extends El.Children.Void >( attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children>;
<C extends El.Children.Text >( attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, El.Children.Text>;
<C extends El.Children.Array >( attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, Readonly<C>>;
<C extends El.Children.Struct>( attrs: Attrs | undefined, children: C, factory?: El.Factory<M, F, T, C>): El<T, E<M[T]>, C>;
}

@@ -51,0 +55,0 @@

@@ -1,2 +0,2 @@

import { API, Shadow, HTML, SVG, El, Attrs, shadow, html } from '../..';
import { API, Shadow, HTML, SVG, El, Attrs, Factory, shadow, html } from '../..';
import { Coroutine } from 'spica/coroutine';

@@ -586,3 +586,3 @@ import { Sequence } from 'spica/sequence';

<T extends keyof HTMLElementTagNameMap>(
factory: (tag: T, attrs?: Attrs) => HTMLElementTagNameMap[T],
factory: Factory<HTMLElementTagNameMap>,
tag: T,

@@ -589,0 +589,0 @@ attrs: Attrs,

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc