Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Conversation

@codeBelt
Copy link
Owner

No description provided.

@codeBelt codeBelt requested review from ccheney and n8rzz November 11, 2018 17:42
"@babel/cli": "7.1.5",
"@babel/core": "7.1.5",
"@babel/plugin-proposal-class-properties": "7.1.0",
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

do you still need this? even if babel needs it, isn't this covered by tsc?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Not 100% but I am using Babel 7 to compile the ts now and not tsc

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's talk about that tomorrow. Why would you use an abstraction of ts to compile ts?

"version": "2.0.0",
"description": "Simple React Hot Loading example with Hapi Server-side rendering",
"engines": {
"node": ">=8.9.1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"node": ">=8.9.1"
"node": ">=10.11.0"

}

public async startServer(): Promise<void> {
process.on('unhandledRejection', (err) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

missing arg type?

Suggested change
process.on('unhandledRejection', (err) => {
process.on('unhandledRejection', (err: Error) => {


public async startServer(): Promise<void> {
process.on('unhandledRejection', (err) => {
console.log(err);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
console.log(err);
console.error(err);

class ProviderUtility {

public static createProviderStore(initialState: any = {}, history: History = null, isServerSide: boolean = false): ISagaStore<IStore> {
public static createProviderStore(initialState: any = {}, history: History = null, isServerSide: boolean = false): ISagaStore {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public static createProviderStore(initialState: any = {}, history: History = null, isServerSide: boolean = false): ISagaStore {
public static createProviderStore(initialState: object = {}, history: History = null, isServerSide: boolean = false): ISagaStore {

@codeBelt codeBelt changed the base branch from master to webpack-4 November 15, 2018 15:10
@codeBelt codeBelt closed this Nov 15, 2018
@codeBelt codeBelt deleted the webpack4 branch November 15, 2018 16:24
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.

3 participants