Alignment should likely be typed the same way, since Column.Alignment === Alignment.
Not sure exactly what the right solution is, since changing the types now is technically a breaking change to the types (Someone could currently be doing something like:
it's definitely not intended and the type definition in types/index.d.ts is wrong I think, I was completely new to TS when bringing typings into this package
Currently, Alignment is exported as a variable directly in index.js
and is defined as
However, in types/index.d.ts, Alignment is specified as
which is a type, not a value. This means that a statement like
Will fail if compiled with typescript, since types cannot be used as values:
Later in types/index.d.ts, Column.Alignment is typed:
So the code
Will compile.
Alignment should likely be typed the same way, since Column.Alignment === Alignment.
Not sure exactly what the right solution is, since changing the types now is technically a breaking change to the types (Someone could currently be doing something like:
It's unclear to me if this is just happenstance, or it was actually intended.