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

definition of more types for a property #825

Closed
lucamorelli opened this issue Oct 4, 2014 · 1 comment
Closed

definition of more types for a property #825

lucamorelli opened this issue Oct 4, 2014 · 1 comment
Labels
Duplicate An existing issue was already created

Comments

@lucamorelli
Copy link

Hi,
I just opened this issue DefinitelyTyped/DefinitelyTyped#2923 about the columndef property of nggrid.
In this case normally the property is set as an array of IColumnDef objects but when you need to assign this property the content of another field in the scope, I have to write a string with the name of the field and this way I can set the properties dynamically, because the grid can handle the changes in the object list.
At the moment I solved changing to any, but it's not the first time I see the use of any because a field is used in a couple of different ways.
Exists a way to define a field with a limited set of data type?
The first similar thing I think is the old C struct, used to write in a different way the same memory location.
May be nice because this way you can have the flexibility to use in a different way the same entity and strict typing.

Luca

@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label Oct 4, 2014
@RyanCavanaugh
Copy link
Member

See #805 which is for exactly this kind of scenario.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

2 participants