Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update index.d.ts #3107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update index.d.ts #3107

wants to merge 1 commit into from

Conversation

luchen666
Copy link

In the norm method in vtkMath, its second parameter should be non-required. However, in ts, an error reporting situation occurs every time.

Context

Results

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js:
    • OS:
    • Browser:

In the norm method in vtkMath, its second parameter should be non-required. However, in ts, an error reporting situation occurs every time.
Copy link
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please respect the semantic release naming scheme of VTK.js.

You can use npm run commit to format your commit messages.

@@ -311,7 +311,7 @@ export function cross(x: Vector3, y: Vector3, out: Vector3): Vector3;
* @param {Number[]} x
* @param {Number} n
*/
export function norm(x: number[], n: number): number;
export function norm(x: number[], n: number = 3): number;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export function norm(x: number[], n?: number): number;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants