1.0.0-alpha • Published 3 years ago
@memoraike/tstl-pipewrench-utils v1.0.0-alpha
Support instanceof method from Project Zomboid lua. Example:
import { DrainableComboItem } from '@asledgehammer/pipewrench';
function predicateNotFullPetrol(item: InventoryItem) {
return item.hasTag('Petrol') && instanceOf(item, DrainableComboItem) && item.getUsedDelta() < 1;
}Result to:
function predicateNotFullPetrol(item)
return item:hasTag("Petrol") and instanceof(item, "DrainableComboItem") and item:getUsedDelta() < 1
endBuild
npm install
npm tsc
npm version <version number>
npm publish