Sometimes now-sdk dependencies
generates any
types for OOB Script Includes?
#6
Unanswered
chaorace
asked this question in
Help and Questions with SDK or Fluent
Replies: 1 comment 2 replies
-
You are correct, we are using the same ones that come from the instance for the monaco editor. We are hoping to enhance these in the future so you get better types, but since the script includes are just javascript we need to run that through something better at inferring those from the code (AI?) or leverage JSDocs if they have them. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I notice that a lot of OoB script includes fail to generate a real type definition when using
now-sdk dependencies
.(SDK version: 3.0.2)
For example, if I add a script like this to
src/fluent/example.js
...... this is the resulting
@types/servicenow/script-includes-server.d.ts
after invokingnow-sdk dependencies
:I imagine this must be based on the same intellisense generation used by the monaco-based script editor? If so, is it best to assume that the quality of these generated types will remain as-is for the foreseeable future?
Beta Was this translation helpful? Give feedback.
All reactions