score:0

its work for me

import { AlignType } from 'rc-table/lib/interface'
{
      title: 'Age',
      dataIndex: 'age',
      key: 'age',
      align: 'right' as AlignType,
}

score:1

This works for me.

align: 'right' as const,

So the code looks like this:

{
      title: 'Age',
      dataIndex: 'age',
      key: 'age',
      align: 'right' as const,
}

score:3

try this one. its work for me

{
      title: 'Age',
      dataIndex: 'age',
      key: 'age',
      align: 'right' as 'right',
}

score:4

import { AlignType } from 'rc-table/lib/interface';

align: 'right' as 'right',// not recommend
align: 'right' as const,// ok
align: 'right' as AlignType,// good

3 ways to solve your problem.


Related Query

More Query from same tag