type Params = Readonly<{
  'a': boolean,
  'b': boolean,
}>;

declare const params: Params;

const test0 = (): Params => {
  return {...params, [true]: true}; // error true is invalid-computed-prop
};

const test1 = <T extends boolean>(
  key: T,
): Params => {
  return {...params, [key]: true}; // error boolean is invalid-computed-prop
};

const test2 = <T extends true>(
  key: T,
): Params => {
  return {...params, [key]: true}; // error true is invalid-computed-prop
};
