Skip to content

replace doesn't type check as expected with plain objects types

type Configuration = {
  foo: string,
  bar: string
};

export const configuration = register(() => {
  let configuration: Configuration = {
    foo: 'foo',
    bar: 'bar',
  };

  return configuration;
});

replace(configuration, () => {
  return {
    foo: 'foo'
  };
}); // should throw a TS2345 error
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information