
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@markuplint/types
Advanced tools
Type declaration and value checker
import { check } from '@markuplint/types';
check('2020-01-01', 'DateTime');
// => { matched: true }
check('2020-02-30', 'DateTime');
// => {
// matched: false,
// reason: { type: 'out-of-range', gte: 1, lte: 29 },
// expects: [],
// partName: 'date',
// ref: 'https://html.spec.whatwg.org/multipage/text-level-semantics.html#datetime-value',
// raw: '30',
// offset: 8,
// length: 2,
// line: 1,
// column: 9,
// }
| Identifier | Use on | Spec | Supported |
|---|---|---|---|
Any | Some attributes | β | |
NoEmptyAny | Some attributes | β | |
OneLineAny | Some attributes | β | |
Zero | Some attributes | β | |
Number | Some attributes | β | |
Uint | Some attributes | β | |
XMLName | svg|[attributeName] and more | XML | β |
DOMID | The id attribute and more | WHATWG | β |
FunctionBody | Event handler attributes | π§ | |
Pattern | input[pattern] | WHATWG | β |
DateTime | time[datetime] and more | WHATWG | β |
TabIndex | The tabindex attribute | WHATWG | β |
BCP47 | The lang attribute and more | RFC | β |
URL | Some attributes | WHATWG | β |
AbsoluteURL | The itemtype attribute (as list) | WHATWG | β |
HashName | img[usemap] | WHATWG | β |
OneCodePointChar | The accesskey attribute (as list) | WHATWG | β |
CustomElementName | The is attribute | WHATWG | β |
BrowsingContextName | Use NavigableTargetName instead. | Obsolated | β |
BrowsingContextNameOrKeyword | Use NavigableTargetNameOrKeyword instead. | Obsolated | β |
NavigableTargetName | iframe[name] and more | WHATWG | β |
NavigableTargetNameOrKeyword | a[target] and more | WHATWG | β |
HTTPSchemaURL | a[ping] (as list) and more | WHATWG | β |
MIMEType | embed[type] and more | WHATWG | β |
ItemProp | The itemprop attribute (as list) | WHATWG | β |
Srcset | img[srcset] and more | WHATWG | β |
SourceSizeList | img[sizes] and more | WHATWG | β |
IconSize | link[sizes] (as list) | WHATWG | β |
AutoComplete | input[autocomplete] and more | WHATWG | β |
Accept | input[accept] | WHATWG | β |
SerializedPermissionsPolicy | iframe[allow] | W3C | β |
<css-declaration-list> | The style attribute | CSS | β |
<class-list> | The class attribute | SVG | β |
<svg-font-size> | Some attributes for SVG | CSS | π§ |
<svg-font-size-adjust> | Some attributes for SVG | CSS | π§ |
<'color-profile'> | Some attributes for SVG | SVG | π§ |
<'color-rendering'> | Some attributes for SVG | SVG | π§ |
<'enable-background'> | Some attributes for SVG | SVG | π§ |
<list-of-svg-feature-string> | Some attributes for SVG | SVG | π§ |
<animatable-value> | Some attributes for SVG | SVG | π§ |
<begin-value-list> | Some attributes for SVG | SVG | π§ |
<end-value-list> | Some attributes for SVG | SVG | π§ |
<list-of-value> | Some attributes for SVG | SVG | π§ |
<clock-value> | Some attributes for SVG | SMIL | π§ |
<color-matrix> | Some attributes for SVG | W3C | β |
<dasharray> | Some attributes for SVG | SVG | β |
<key-points> | Some attributes for SVG | SVG | β |
<key-splines> | Some attributes for SVG | SVG | β |
<key-times> | Some attributes for SVG | SVG | β |
<system-language> | Some attributes for SVG | SVG | β |
<origin> | Some attributes for SVG | SMIL | β |
<svg-path> | Some attributes for SVG | SVG | π§ |
<points> | Some attributes for SVG | SVG | β |
<preserve-aspect-ratio> | Some attributes for SVG | SVG | β |
<view-box> | Some attributes for SVG | SVG | β |
<rotate> | Some attributes for SVG | SVG | β |
<text-coordinate> | Some attributes for SVG | SVG | β |
<list-of-lengths> | Some attributes for SVG | β | |
<list-of-numbers> | Some attributes for SVG | β | |
<list-of-percentages> | Some attributes for SVG | β | |
<number-optional-number> | Some attributes for SVG | β |
In addition, you can use types CSSTree defined.
$ npm install @markuplint/types
$ yarn add @markuplint/types
FAQs
Type declaration and value checker
The npm package @markuplint/types receives a total of 36,263 weekly downloads. As such, @markuplint/types popularity was classified as popular.
We found that @markuplint/types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authoritiesβ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socketβs new workflow scanning support.