Comments (17)
Hello. Is there any update on this? What would be the impact if someone else just submitted the type definitions to DefinitelyTyped?
from actions-on-google-nodejs.
This is definitely an option, but for now we will keep it as it is since we will have to validate the library with TypeScript as well, to make sure things are working correctly.
I will leave this open until we add a feature request on our side.
Tks.
from actions-on-google-nodejs.
Based on your feedback, we have just launched a new version of the AoG client library: https://medium.com/@silvano.luciani/actions-on-google-client-library-for-node-js-v2-0-0-alpha-c92361167f15
from actions-on-google-nodejs.
Check out my TypeScript fork (latest version, v1.1.1 ) of this library (npm, repo)
$ npm install actions-on-google-ts
import { ApiAiApp, RequestHandler } from 'actions-on-google-ts';
const app = new ApiAiApp({request, response});
const actionMap = new Map<string, RequestHandler>();
...
app.handleRequest(actionMap);
from actions-on-google-nodejs.
Updated package to support v1.2.1: npm install actions-on-google-ts
(npm, repo)
@smishra2 @entertailion @gustavo-moreira @Canain @silvolu The TypeScript declarations files are complete and they cover 100% of exported modules. It also has 1:1 mapping of the comments. Would you guys be interested in brining these into this repo if I submit a PR?
from actions-on-google-nodejs.
@pilwon thanks for the job you've done to allow developers to use our client library with TypeScript!
Thanks for your offer, but we still can't commit to maintaining TypeScript as well.
Keeping this open to track the request.
from actions-on-google-nodejs.
@pilwon Rather than continuing to maintain a fork, have you thought about contributing just the type definition to http://definitelytyped.org/? Typescript developers expect to be able to do npm install @types/actions-on-google
.
from actions-on-google-nodejs.
I ran into some issues with @pilwon's fork not being up to date with this package. To make this more maintainable I went ahead and submitted it as DefinitelyTyped/DefinitelyTyped#20303. This is updated to the 1.4 version of this package and aligns with DefinitelyTyped's standards.
from actions-on-google-nodejs.
@joelhegg @pilwon Nice work. Hopefully it will merge soon.
from actions-on-google-nodejs.
Can somebody from Google comment on DefinitelyTyped/DefinitelyTyped#20303. They have concerns because their package is under the MIT license and this one is under the Apache v2 license. They're both permissive and should be compatible. 80% what's in there is the jsdoc from this package though, so they're being cautious about proceeding without sign off.
from actions-on-google-nodejs.
@joelhegg from what I've seen the pull request that you have submitted doesn't contain any files authored by us, so we have no claims on them. You can strip the headers and change the license, although you should probably check with @pilwon as it looks like your work is based off what he's done. For the jsdoc comments, as you mentioned you can attribute them to our docs released under CC, adding a NOTICE similar to the one you point to in your comments.
As @Thomas-P commented on the DefinitelyTyped pull request, in a repo like @pilwon's fork where you have some files authored by us and some not, you can change the license for the files you authored, you'd only need to keep our headers in the file authored by us, a copy of the apache license in the repo (as per point 4a of the license), notices for files authored by us that you have changed.
Hope this helps!
from actions-on-google-nodejs.
And when I said "our docs released under CC" I meant https://developers.google.com/actions/reference/nodejs/AssistantApp :)
from actions-on-google-nodejs.
Thanks @silvolu I'll update DefinitelyTyped/DefinitelyTyped#20303 accordingly.
from actions-on-google-nodejs.
1+
from actions-on-google-nodejs.
DefinitelyType merged this contribution. You can use it by doing either yarn add @types/actions-on-google -D
or npm install @types/actions-on-google -D
.
from actions-on-google-nodejs.
@entertailion This is great update. Thanks for natively supporting TypeScript!
from actions-on-google-nodejs.
Thank you guys so much for the support and work on this for our library!
Since the original issue has been resolved which is TypeScript definitions for v1 of the library submitted by you guys, we're going to close this issue for now.
Since the v2 of the library is written in TypeScript and is currently in the alpha phase, please feel free to open any issues about TypeScript for that so we can polish it during the alpha.
We want to create the best experience for both JavaScript and now TypeScript developers using our library!
from actions-on-google-nodejs.
Related Issues (20)
- Support configuring loggers HOT 1
- Sign homegraph request using IAM API HOT 2
- Link Out Suggestion not working as expected
- smarthome Action: onSync response is invalid (according to GCP logs explorer) HOT 1
- How to bypass middleware and only get JSON response HOT 1
- queryText being sent to Dialogflow is not the original user query HOT 4
- Response is malformed HOT 1
- Smart Home: Cache authorization tokens HOT 14
- Smart Home: Allow to set https agent options HOT 1
- Error, Entity not found
- TypeError: Cannot read property '0' of undefined HOT 1
- npm audit has been reporting vulnerabilities since at least October 2020, please can we update dependencies? HOT 7
- account link success but action response error
- onDisconnect bug
- unable to trigger actions.intent.NO_MATCH HOT 2
- Can't find user access token in requests to fulfilment webhooks HOT 1
- Upgrade "google-auth-library" dependency to latest major version
- TypeError: Cannot read properties of undefined (reading '0')
- Turtorial on authentication
- Typescript doesn't compile with `strictNullChecks: true`
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 actions-on-google-nodejs.