{"payload":{"allShortcutsEnabled":false,"fileTree":{"declarations":{"items":[{"name":"react-class-set.d.ts","path":"declarations/react-class-set.d.ts","contentType":"file"},{"name":"react-typescript.d.ts","path":"declarations/react-typescript.d.ts","contentType":"file"},{"name":"react.d.ts","path":"declarations/react.d.ts","contentType":"file"}],"totalCount":3},"":{"items":[{"name":"declarations","path":"declarations","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"third_party","path":"third_party","contentType":"directory"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"Gruntfile.js","path":"Gruntfile.js","contentType":"file"},{"name":"Readme.md","path":"Readme.md","contentType":"file"},{"name":"index.js","path":"index.js","contentType":"file"},{"name":"package.json","path":"package.json","contentType":"file"}],"totalCount":8}},"fileTreeProcessingTime":11.532153999999998,"foldersToFetch":[],"repo":{"id":17085094,"defaultBranch":"master","name":"react-typescript","ownerLogin":"fdecampredon","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2014-02-22T13:17:01.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/864201?v=4","public":true,"private":false,"isOrgOwned":false},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1393924908.0","canEdit":false,"refType":"branch","currentOid":"80552b0873f98236850a3a90d48f12f3a8a530c7"},"path":"declarations/react.d.ts","currentUser":null,"blob":{"rawLines":["declare module React {"," ","\t/**","\t * Configure React's event system to handle touch events on mobile devices.","\t * @param shouldUseTouch true if React should active touch events, false if it should not ","\t */","\tfunction initializeTouchEvents(shouldUseTouch: boolean): void;","\t"," /**","\t * Create a component given a specification. A component implements a render method which returns one single child. ","\t * That child may have an arbitrarily deep child structure. ","\t * One thing that makes components different than standard prototypal classes is that you don't need to call new on them. ","\t * They are convenience wrappers that construct backing instances (via new) for you.","\t * ","\t * @param spec the component spécification","\t */"," // we need mixins and type union here, until that manually specifies the type.","\tfunction createClass
(spec: ReactComponentSpec
): ReactComponentFactory
>;","\t"," /**"," * Render a React component into the DOM in the supplied container."," * If the React component was previously rendered into container, "," * this will perform an update on it and only mutate the DOM as necessary to reflect the latest React component."," * "," * @param component the component to render"," * @param container the node that should contain the result of rendering"," * @param callback an optional callback that will be executed after the component is rendered or updated. "," */","\tfunction renderComponent {"," "," refs: { [ref: string]: ReactComponent > {"," (protperties?: P, ...children: any[]): C"," }"," /**"," * interface describing ReactComponentSpec"," */"," interface ReactMixin {"," "," /**"," * Invoked immediately before rendering occurs. "," * If you call setState within this method, render() will see the updated state and will be executed only once despite the state change."," */"," componentWillMount?(): void;"," "," /**"," * Invoked immediately after rendering occurs. "," * At this point in the lifecycle, the component has a DOM representation which you can access via the rootNode argument or by calling this.getDOMNode()."," * If you want to integrate with other JavaScript frameworks, set timers using setTimeout or setInterval, "," * or send AJAX requests, perform those operations in this method."," */"," componentDidMount?(): void;"," "," /**"," * Invoked when a component is receiving new props. This method is not called for the initial render."," * "," * Use this as an opportunity to react to a prop transition before render() is called by updating the state using this.setState(). "," * The old props can be accessed via this.props. Calling this.setState() within this function will not trigger an additional render."," * "," * @param nextProps the props object that the component will receive"," */"," componentWillReceiveProps?(nextProps: P): void;"," "," /**"," * Invoked before rendering when new props or state are being received. "," * This method is not called for the initial render or when forceUpdate is used."," * Use this as an opportunity to return false when you're certain that the transition to the new props and state will not require a component update."," * By default, shouldComponentUpdate always returns true to prevent subtle bugs when state is mutated in place, "," * but if you are careful to always treat state as immutable and to read only from props and state in render() "," * then you can override shouldComponentUpdate with an implementation that compares the old props and state to their replacements."," * "," * If performance is a bottleneck, especially with dozens or hundreds of components, use shouldComponentUpdate to speed up your app."," * "," * @param nextProps the props object that the component will receive"," * @param nextState the state object that the component will receive"," */"," shouldComponentUpdate?(nextProps: P, nextState: S): boolean;\t"," "," /**"," * Invoked immediately before rendering when new props or state are being received. This method is not called for the initial render."," * Use this as an opportunity to perform preparation before an update occurs."," * "," * @param nextProps the props object that the component has received"," * @param nextState the state object that the component has received"," */"," componentWillUpdate?(nextProps: P, nextState: S): void;\t"," "," /**"," * Invoked immediately after updating occurs. This method is not called for the initial render."," * Use this as an opportunity to operate on the DOM when the component has been updated."," * "," * @param nextProps the props object that the component has received"," * @param nextState the state object that the component has received"," */"," componentDidUpdate?(nextProps: P, nextState: S): void;"," "," /**"," * Invoked immediately before a component is unmounted from the DOM."," * Perform any necessary cleanup in this method, such as invalidating timers or cleaning up any DOM elements that were created in componentDidMount."," */"," componentWillUnmount?(): void;\t"," }"," "," "," interface ReactComponentSpec extends ReactMixin {"," "," /**"," * The mixins array allows you to use mixins to share behavior among multiple components. "," */"," mixins?: ReactMixin