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

@markuplint/types

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/types

Type declaration and value checker

  • 4.0.0-alpha.7
  • npm
  • Socket score

Version published
Weekly downloads
43K
decreased by-19.89%
Maintainers
1
Weekly downloads
 
Created
Source

@markuplint/types

npm version

Type declaration and value checker

Type declaration

API

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,
// }

Type Identifiers

IdentifierUse onSpecSupported
AnySome attributes
NoEmptyAnySome attributes
OneLineAnySome attributes
ZeroSome attributes
NumberSome attributes
UintSome attributes
XMLNamesvg|[attributeName] and moreXML
DOMIDThe id attribute and moreWHATWG
FunctionBodyEvent handler attributes🚧
Patterninput[pattern]WHATWG
DateTimetime[datetime] and moreWHATWG
TabIndexThe tabindex attributeWHATWG
BCP47The lang attribute and moreRFC
URLSome attributesWHATWG
AbsoluteURLThe itemtype attribute (as list)WHATWG
HashNameimg[usemap]WHATWG
OneCodePointCharThe accesskey attribute (as list)WHATWG
CustomElementNameThe is attributeWHATWG
BrowsingContextNameUse NavigableTargetName instead.Obsolated
BrowsingContextNameOrKeywordUse NavigableTargetNameOrKeyword instead.Obsolated
NavigableTargetNameiframe[name] and moreWHATWG
NavigableTargetNameOrKeyworda[target] and moreWHATWG
HTTPSchemaURLa[ping] (as list) and moreWHATWG
MIMETypeembed[type] and moreWHATWG
ItemPropThe itemprop attribute (as list)WHATWG
Srcsetimg[srcset] and moreWHATWG
SourceSizeListimg[sizes] and moreWHATWG
IconSizelink[sizes] (as list)WHATWG
AutoCompleteinput[autocomplete] and moreWHATWG
Acceptinput[accept]WHATWG
SerializedPermissionsPolicyiframe[allow]W3C
<css-declaration-list>The style attributeCSS
<class-list>The class attributeSVG
<svg-font-size>Some attributes for SVGCSS🚧
<svg-font-size-adjust>Some attributes for SVGCSS🚧
<'color-profile'>Some attributes for SVGSVG🚧
<'color-rendering'>Some attributes for SVGSVG🚧
<'enable-background'>Some attributes for SVGSVG🚧
<list-of-svg-feature-string>Some attributes for SVGSVG🚧
<animatable-value>Some attributes for SVGSVG🚧
<begin-value-list>Some attributes for SVGSVG🚧
<end-value-list>Some attributes for SVGSVG🚧
<list-of-value>Some attributes for SVGSVG🚧
<clock-value>Some attributes for SVGSMIL🚧
<color-matrix>Some attributes for SVGW3C
<dasharray>Some attributes for SVGSVG
<key-points>Some attributes for SVGSVG
<key-splines>Some attributes for SVGSVG
<key-times>Some attributes for SVGSVG
<system-language>Some attributes for SVGSVG
<origin>Some attributes for SVGSMIL
<svg-path>Some attributes for SVGSVG🚧
<points>Some attributes for SVGSVG
<preserve-aspect-ratio>Some attributes for SVGSVG
<view-box>Some attributes for SVGSVG
<rotate>Some attributes for SVGSVG
<text-coordinate>Some attributes for SVGSVG
<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.

Install

$ npm install @markuplint/types

$ yarn add @markuplint/types

FAQs

Package last updated on 03 Jan 2024

Did you know?

Socket

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.

Install

Related posts

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