Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

Latest commit

 

History

History
41 lines (31 loc) · 2.07 KB

File metadata and controls

41 lines (31 loc) · 2.07 KB

Home > @datashaper/workflow > Resource

Resource class

Signature:

export declare abstract class Resource extends Named implements ResourceSchema, Resource 

Extends: Named

Implements: ResourceSchema, Resource

Properties

Property Modifiers Type Description
$schema readonly string | undefined Gets the resource schema
dataPackage protected DataPackage | undefined
homepage string | undefined
isConnected readonly boolean
license string | undefined
path ResourceSchema['path']
profile readonly Profile | undefined Gets the resource profile
rel ResourceSchema['rel']
sources (Resource | ResourceReference)[]

Methods

Method Modifiers Description
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()