Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123576812
Playground.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 28, 10:25
Size
1 KB
Mime Type
text/x-java
Expires
Wed, Jul 30, 10:25 (2 d)
Engine
blob
Format
Raw Data
Handle
27705307
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
Playground.d.ts
View Options
import React, { Component } from 'react';
import PropTypes from 'prop-types';
interface PlaygroundProps {
evalInContext(code: string): () => any;
index: number;
name?: string;
exampleMode?: string;
code: string;
settings: {
showcode?: boolean;
noeditor?: boolean;
padded?: boolean;
props?: any;
};
}
interface PlaygroundState {
code: string;
prevCode: string;
activeTab?: string;
}
declare class Playground extends Component<PlaygroundProps, PlaygroundState> {
static propTypes: {
code: PropTypes.Validator<string>;
evalInContext: PropTypes.Validator<(...args: any[]) => any>;
index: PropTypes.Validator<number>;
name: PropTypes.Validator<string>;
exampleMode: PropTypes.Validator<string>;
settings: PropTypes.Requireable<object>;
};
static defaultProps: {
settings: {};
};
static contextType: React.Context<import("rsg-components/Context").StyleGuideContextContents>;
private handleChange;
state: PlaygroundState;
static getDerivedStateFromProps(nextProps: PlaygroundProps, prevState: PlaygroundState): {
prevCode: string;
code: string;
} | null;
componentWillUnmount(): void;
private getInitialActiveTab;
private handleTabChange;
render(): JSX.Element;
}
export default Playground;
Event Timeline
Log In to Comment