Typescript Definition Files
See original GitHub issueWhat kind of issue is this? (put ‘x’ between the square brackets)
-
Question. This issue tracker is not the place for questions. If you want to ask how to do something, or to understand why something isn’t working the way you expect it to, use http://stackoverflow.com/questions/ask . Provide working code, starting from http://codepen.io/marcandre/pen/jqbzyN?editors=101. We monitor the tag
parsley.js
. -
Bug report. If you’ve found a bug, you must provide a minimal example in a CodePen, starting from http://codepen.io/marcandre/pen/jqbzyN?editors=101 .
-
Feature Request. Make sure there’s no good way to do what you want first; consider asking on http://stackoverflow.com/questions/ask first.
I’d like to add a Typescript definition file for use by consumers. I’ve started one here.
Three questions:
- Is this a PR you’re open to?
- The definition file is incomplete; do you mind if I submit the PR in the known incomplete state and collect feedback and revisions?
- I didn’t include any methods with an underscore prefix, believing that they’re part of the internal API. Should they be included for consumers?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8
Top GitHub Comments
@frederikprijck: anyone is more than welcome to provide a PR for this.
requirementsAndField
could be as you describe, probably, but one of the possibility is a plain object, or an array of(string | number | ...)
. Not sure that would be much more restrictive thanany
@richseviora Thanks and aps for not replying earlier.
@marcandre Has there been any more interest on making this happen? Truth be told I’ve spent hours working on a solution but haven’t struck gold with this yet but I’m extremely keen to make it happen.
Just being able to import Parsley into Typescript alone would be something…