workflow.resource.md

January 18, 2023 ยท View on GitHub

Home > @datashaper/workflow > Resource

Resource class

Signature:

export declare abstract class Resource extends Named implements ResourceSchema, Resource 

Extends: Named

Implements: ResourceSchema, Resource

Properties

PropertyModifiersTypeDescription
$schemareadonlystring | undefinedGets the resource schema
dataPackageprotectedDataPackage | undefined
homepagestring | undefined
isConnectedreadonlyboolean
licensestring | undefined
pathResourceSchema['path']
profilereadonlyProfile | undefinedGets the resource profile
relResourceSchema['rel']
sources(Resource | ResourceReference)[]

Methods

MethodModifiersDescription
connect(dp, top)Connects this resource to the given data package
defaultName()
dispose()
getSourcesWithProfile(type)Gets the sources of this resource that match the given profile type
isReference()
loadSchema(value, quiet)
toSchema()