1.0.0-alpha • Published 3 years ago

@memoraike/tstl-pipewrench-utils v1.0.0-alpha

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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
end

Build

npm install
npm tsc
npm version <version number>
npm publish
1.0.0-alpha

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago