Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateless function components in JSX #5596

Merged

Conversation

RyanCavanaugh
Copy link
Member

In this PR:

There will be a sister PR to this one to DefinitelyTyped to add the new types to react.d.ts

@@ -203,12 +200,17 @@ namespace ts {
}
};

let jsxElementType: ObjectType;
/** Things we lazy load from the JSX namespace */
const jsxTypes: {[name: string]: ObjectType} = {};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Map<ObjectType>

@@ -1115,6 +1117,15 @@ namespace Harness {
includeBuiltFiles.push({ unitName: builtFileName, content: normalizeLineEndings(IO.readFile(builtFileName), newLine) });
}

// Files from tests\lib that are requested by "@libFiles"
if (options.libFiles) {
ts.forEach(options.libFiles.split(","), filename => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fileName, also use a for..of if you don't need a forEach

@Shadowfaxenator
Copy link

#5675

@gmosx
Copy link

gmosx commented Nov 27, 2015

Will this get included in TypeScript 1.7? Alternatively, any ETA?

@DanielRosenwasser
Copy link
Member

This is slated for TypeScript 1.8. TypeScript 1.7 should be coming out fairly soon.

RyanCavanaugh added a commit that referenced this pull request Dec 1, 2015
@RyanCavanaugh RyanCavanaugh merged commit bc92e4e into microsoft:master Dec 1, 2015
@RyanCavanaugh RyanCavanaugh deleted the statelessFunctionComponents branch December 1, 2015 22:51
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants