Skip to content

Commit

Permalink
Merge pull request #271 from dabapps/readonly-arrays
Browse files Browse the repository at this point in the history
Readonly arrays
  • Loading branch information
JakeSidSmith authored Sep 19, 2018
2 parents b5acc97 + 073e814 commit 3f56e4c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dabapps/roe",
"version": "0.9.20",
"version": "0.9.21",
"description": "A Collection of React Components for Project Development",
"main": "dist/js/index.js",
"types": "dist/js/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/ts/components/modals/modal-renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface ModalRendererProps extends HTMLProps<HTMLElement> {
/**
* Array of modals to be rendered.
*/
modals: React.ReactNode[];
modals: ReadonlyArray<React.ReactNode>;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const resetRandomSeed = () => {
rand = randomSeed.create('dabapps');
};

export const generateIpsum = (words: string[]) => {
export const generateIpsum = (words: ReadonlyArray<string>) => {
const ipsum = Array.apply(null, new Array(15))
.map(() => words[Math.floor(rand.range(words.length))])
.join(' ');
Expand Down

0 comments on commit 3f56e4c

Please sign in to comment.