Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Draft: (partial) fix for 'ce.declare' with SymbolDefinition using prop. 'type'#226

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
samueltlg wants to merge1 commit intocortex-js:main
base:main
Choose a base branch
Loading
fromsamueltlg:fix-symbol-declaration

Conversation

@samueltlg
Copy link
Contributor

@samueltlgsamueltlg commentedDec 23, 2024
edited
Loading

Noticed thatce.declare errors when supplying aSymbolDefinition of form{type: TypeString} for second arg.

Current changes appear to address the issue, but appears tosurface or reveal a few existing test errs. where throughout these, type values given through 'SymbolDefinition.type' do not conform to current type definitions: e.g.{ type: 'set<integers>', ... } is given whereas in this context, according to definition of the type 'Type', a{kind: 'set', elements: 'integers' } is expected instead. Did try to investigate further but opened a bit of a can of worms.

Believe that almost all errs. can be addressed fairly easily with present changes, but may require some alterations.
For reference, for the commit at which this was branched, 4 'snapshot' errors were already present split between tests 'compute-engine/compile.test.ts', and 'compute-engine/compile.test.ts'. This change surfaces ~18 newer. Feel free to edit as pleased or denounce changes

!(
(typeofdef.type==='string'&&isSubtype(def.type,'function'))||
(def.type&&isValidType(def.type))
)
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Think this was a bug/typo? I.e. final cond. to be negated.

thrownewError(
'The `type` field of a symbol definition should be of type `string`'
);
}
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Think that's OK; but some introduced errs. may be surfacing on account oftype being given asundefined: so may require minor adjstment.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@samueltlg

[8]ページ先頭

©2009-2025 Movatter.jp