Coder Social home page Coder Social logo

Comments (17)

anandnimkar avatar anandnimkar commented on May 29, 2024 4

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.

gustavo-moreira avatar gustavo-moreira commented on May 29, 2024 2

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.

NoRulesJustFeels avatar NoRulesJustFeels commented on May 29, 2024 2

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.

pilwon avatar pilwon commented on May 29, 2024 1

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.

pilwon avatar pilwon commented on May 29, 2024 1

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.

silvolu avatar silvolu commented on May 29, 2024

@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.

joelhegg avatar joelhegg commented on May 29, 2024

@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.

joelhegg avatar joelhegg commented on May 29, 2024

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.

Thomas-P avatar Thomas-P commented on May 29, 2024

@joelhegg @pilwon Nice work. Hopefully it will merge soon.

from actions-on-google-nodejs.

joelhegg avatar joelhegg commented on May 29, 2024

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.

silvolu avatar silvolu commented on May 29, 2024

@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.

silvolu avatar silvolu commented on May 29, 2024

And when I said "our docs released under CC" I meant https://developers.google.com/actions/reference/nodejs/AssistantApp :)

from actions-on-google-nodejs.

joelhegg avatar joelhegg commented on May 29, 2024

Thanks @silvolu I'll update DefinitelyTyped/DefinitelyTyped#20303 accordingly.

from actions-on-google-nodejs.

mInzamamMalik avatar mInzamamMalik commented on May 29, 2024

1+

from actions-on-google-nodejs.

joelhegg avatar joelhegg commented on May 29, 2024

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.

pilwon avatar pilwon commented on May 29, 2024

@entertailion This is great update. Thanks for natively supporting TypeScript!

from actions-on-google-nodejs.

Canain avatar Canain commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.