Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnaya committed Oct 30, 2019
1 parent d219cbe commit 6e11371
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@
"cypress"
],
"dependencies": {
"typescript": "^3.7.0-dev.20191011"
"typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/51580/artifacts?artifactName=tgz&fileId=2D5A2A07D78EC360247C2C72F1E8337CF422D29DB76FE7B0A85A211722010B9702&fileName=/typescript-3.8.0-insiders.20191029.tgz"
}
}
1 change: 1 addition & 0 deletions packages/ra-tree-core/src/TreeController.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class TreeControllerView extends Component {
parentSource
);

// @ts-ignore
return children({
getIsNodeExpanded: this.handleGetIsNodeExpanded,
parentSource,
Expand Down
3 changes: 2 additions & 1 deletion packages/ra-tree-core/src/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { CLOSE_NODE, TOGGLE_NODE, EXPAND_NODE } from './actions';

const initialState = {};

export default (state = initialState, { type, payload: nodeId, meta }) => {
// @ts-ignore
export default (state = initialState, { type, payload: nodeId, meta } = {}) => {
if (![CLOSE_NODE, TOGGLE_NODE, EXPAND_NODE].includes(type)) {
return state;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-tree-ui-materialui/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"rootDir": "./src",
"tsBuildInfoFile": "./esm/.tsbuildinfo",
"checkJs": false,
"declarationDir": "./declarationDir-ignore-esm"
// "declarationDir": "./declarationDir-ignore-esm"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-tree-ui-materialui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"rootDir": "./src",
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"checkJs": false,
"declarationDir": "./declarationDir-ignore"
// "declarationDir": "./declarationDir-ignore"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"],
Expand Down
3 changes: 0 additions & 3 deletions packages/ra-ui-materialui/src/list/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ export const ListView = props => {
);
};

/**
* @type {import("react").WeakValidationMap}
*/
ListView.propTypes = {
actions: PropTypes.element,
aside: PropTypes.element,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-admin/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"outDir": "./esm",
"rootDir": "./src",
"tsBuildInfoFile": "./esm/.tsbuildinfo",
"declarationDir": "./declarationDir-ignore-esm"
// "declarationDir": "./declarationDir-ignore-esm"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"],
Expand Down
2 changes: 1 addition & 1 deletion packages/react-admin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"outDir": "./lib",
"rootDir": "./src",
"tsBuildInfoFile": "./lib/.tsbuildinfo",
"declarationDir": "./declarationDir-ignore"
// "declarationDir": "./declarationDir-ignore"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"],
Expand Down
7 changes: 3 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14991,10 +14991,9 @@ typescript-tuple@^2.1.0:
dependencies:
typescript-compare "^0.0.2"

typescript@^3.7.0-dev.20191011:
version "3.7.0-dev.20191011"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.7.0-dev.20191011.tgz#cf75edcc5d3feab16fa312e62edb2ba8e821d412"
integrity sha512-p/dukMW4mAF0EUuYBDPvO8/uxWYIh4r5Gh4IFtBLsrKmneeVkhlzWB7M3/5kZ0ucWC0BmFxA/6g6We61o2+yfw==
"typescript@https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/51580/artifacts?artifactName=tgz&fileId=2D5A2A07D78EC360247C2C72F1E8337CF422D29DB76FE7B0A85A211722010B9702&fileName=/typescript-3.8.0-insiders.20191029.tgz":
version "3.8.0-insiders.20191029"
resolved "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/51580/artifacts?artifactName=tgz&fileId=2D5A2A07D78EC360247C2C72F1E8337CF422D29DB76FE7B0A85A211722010B9702&fileName=/typescript-3.8.0-insiders.20191029.tgz#358b5d9df7468589d8f5daaca61678820f79f6b5"

ua-parser-js@^0.7.18:
version "0.7.20"
Expand Down

0 comments on commit 6e11371

Please sign in to comment.