fourtheorem / asl-types Goto Github PK
View Code? Open in Web Editor NEWTypeScript types for Amazon States Language (AWS Step Functions)
License: MIT License
TypeScript types for Amazon States Language (AWS Step Functions)
License: MIT License
Anyone else having issues since TypeScript 3.7? 3.6 is fine.
Getting lots of errors around import declaration conflicts:
node_modules/asl-types/dist/index.d.ts(1,10): error TS2440: Import declaration conflicts with local declaration of 'StateMachine'.
node_modules/asl-types/dist/index.d.ts(2,10): error TS2440: Import declaration conflicts with local declaration of 'State'.
node_modules/asl-types/dist/index.d.ts(3,10): error TS2440: Import declaration conflicts with local declaration of 'Choice'.
node_modules/asl-types/dist/index.d.ts(4,10): error TS2440: Import declaration conflicts with local declaration of 'Fail'.
node_modules/asl-types/dist/index.d.ts(5,10): error TS2440: Import declaration conflicts with local declaration of 'Parallel'.
node_modules/asl-types/dist/index.d.ts(6,10): error TS2440: Import declaration conflicts with local declaration of 'Pass'.
node_modules/asl-types/dist/index.d.ts(7,10): error TS2440: Import declaration conflicts with local declaration of 'Succeed'.
node_modules/asl-types/dist/index.d.ts(8,10): error TS2440: Import declaration conflicts with local declaration of 'Task'.
node_modules/asl-types/dist/index.d.ts(9,10): error TS2440: Import declaration conflicts with local declaration of 'Wait'.
node_modules/asl-types/dist/index.d.ts(10,10): error TS2440: Import declaration conflicts with local declaration of 'Map'.
node_modules/asl-types/dist/map.d.ts(5,9): error TS2440: Import declaration conflicts with local declaration of 'StateMachine'.
node_modules/asl-types/dist/state-machine.d.ts(5,9): error TS2440: Import declaration conflicts with local declaration of 'State'.
node_modules/asl-types/dist/state.d.ts(6,9): error TS2440: Import declaration conflicts with local declaration of 'Choice'.
node_modules/asl-types/dist/state.d.ts(7,9): error TS2440: Import declaration conflicts with local declaration of 'Fail'.
node_modules/asl-types/dist/state.d.ts(8,9): error TS2440: Import declaration conflicts with local declaration of 'Parallel'.
node_modules/asl-types/dist/state.d.ts(9,9): error TS2440: Import declaration conflicts with local declaration of 'Pass'.
node_modules/asl-types/dist/state.d.ts(10,9): error TS2440: Import declaration conflicts with local declaration of 'Succeed'.
node_modules/asl-types/dist/state.d.ts(11,9): error TS2440: Import declaration conflicts with local declaration of 'Task'.
node_modules/asl-types/dist/state.d.ts(12,9): error TS2440: Import declaration conflicts with local declaration of 'Wait'.
node_modules/asl-types/dist/state.d.ts(13,9): error TS2440: Import declaration conflicts with local declaration of 'Map'.
The current output has Type: string;
for all of the generated states where it should be Type: "Task" when it's a Task, "Map
when it's a Map, etc.
This appears to have been fixed in asl-validator in the 2.x version
As described in the amazon docs, ErrorEquals should be a string array. However it is being generated as an object array. This is not this packages fault, but is instead an issue with the schema declarations being declared in the asl-validator package.
I have created a PR to fix the schemas in asl-validator. This issue can serve as a "TODO" to upgrade the package version to use the new version that would come out of that PR.
Here is the reference PR ChristopheBougere/asl-validator#55
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.