How to use the property-information.all function in property-information

To help you get started, we’ve selected a few property-information examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wane / wane / src / compiler / analyzer / utils / prop-info.ts View on Github external
export function getPropInfoByPropName (propName: string): propInfo.PropInfo {
  const all = Object.values(propInfo.all)
  const prop = all.find(info => {
    return info.propertyName == propName
  })
  if (prop == null) {
    throw new Error(`Property "${propName}" does not exist.`)
  }
  return prop
}

property-information

Info on the properties and attributes of the web platform

MIT
Latest version published 8 months ago

Package Health Score

70 / 100
Full package analysis