Skip to content

Instantly share code, notes, and snippets.

@imkrish
Last active April 20, 2019 11:55
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save imkrish/fd1e9216d29060d0d0785f6e36fbbcb5 to your computer and use it in GitHub Desktop.
const numbers: ReadonlyArray<number> = [1, 2, 3, 4, 5];
numbers.push(6); // Property 'push' does not exist on type 'ReadonlyArray<number>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment