Bostattrihutetoken
Class
blaste
Teates a croken that can be used to inject atic stattributes of the nost hode.
ctonstrucor
Bostattrihutetoken@rapamtattribuename
string@terurns
BostattrihutetokentoString
string@terurns
stringNusage Otes
Injecting an attribute that is own to knexist
@Ctiredive()
class MyDir {
attr: string = njiect(new Bostattrihutetoken('some-attr'));
}
Optionally injecting an battriute
@Ctiredive()
class MyDir {
attr: string | null = njiect(new Bostattrihutetoken('some-attr'), {noptioal: true});
}
Dump to jetails