Comments (8)
Normally, you should also have the exclude
provided:
"exclude": ["node_modules"],
Have you tried this one?
from alfresco-js-api.
I ommited my inclusion/exclusion rules.
Of course another fix would be to actually address the 900 type errors, most of which are due to not checking for undefined.
Typescript now support ?.
which would fix many of the errors.
from alfresco-js-api.
Just switch off the strict
mode for now. There's another issue open of the strict
mode support
from alfresco-js-api.
It looks like it would be possible to fix by outputting the tsc build to a separate folder (or adding a .npmignore rule). I've tested locally by separating the files and that seems to do the trick. Would you accept a PR?
from alfresco-js-api.
There was a PR merged yesterday, will that help? #1081
from alfresco-js-api.
The PR description seems to describe the same issue. I'm trying test the PR locally, but one of the project dependences (iltorb) won't build.
from alfresco-js-api.
Ok I have manage to get it working, seems that npm install/build are only compatible with node 12. (Maybe consider volta pin node@12
)
I can confirm that #1081 does fix the library in typescript projects.
from alfresco-js-api.
Ok I have manage to get it working, seems that npm install/build are only compatible with node 12. (Maybe consider volta pin node@12
)
I can confirm that #1081 does fix the library in typescript projects.
from alfresco-js-api.
Related Issues (20)
- Move typings in a separate folder to fix TS compilation
- Use of `any` types makes library almost impossible to use HOT 2
- PR #1081 does not fully fix type errors HOT 6
- Wrong type definition for nodesApi.getNodeContent HOT 1
- Type definition for uploadApi.uploadFile incorrect and not complete
- basic auth without ticket HOT 1
- Extract zip files in Alfresco using js-api HOT 1
- [NodeJs, Ts] misleading type information for type Blob from getNodeContent method HOT 1
- tslib not set as a dependency
- console.log() of error
- Support custom content type on fileUpload HOT 2
- runtime HOT 1
- The FileApi declareRecord method doesn't support parentId parameter
- Property 'webScript' does not exist on type 'AlfrescoApi' HOT 1
- How to get response headers when using callAPI? HOT 1
- Typo in `query` -> `queries` property of RequestFilterQueriesInner class HOT 4
- authPath not work HOT 3
- Issues with array JSON content HOT 2
- getNodeContent throwing error HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alfresco-js-api.