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

to typescript #1

Merged
merged 27 commits into from Sep 28, 2018
Merged

to typescript #1

merged 27 commits into from Sep 28, 2018

Conversation

Himenon
Copy link
Owner

@Himenon Himenon commented Sep 17, 2018

  • JS to Typescript

@@ -0,0 +1,157 @@
import * as dot from 'dot-prop'
import * as glamor from 'glamor/server'
Copy link
Owner Author

Choose a reason for hiding this comment

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

どうやら、npmに上がっているpackageは型定義ファイルが含まれていない模様。

https://github.com/threepointone/glamor/blob/master/server.d.ts

Copy link
Owner Author

Choose a reason for hiding this comment

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

解決した

tsconfig.json Outdated
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": false,
Copy link
Owner Author

Choose a reason for hiding this comment

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

本当はtrueにしたいが、こいつに含まれている
https://github.com/threepointone/glamor

src/Markdown.ts Outdated

private applyProps = (scope: any) => {
const { options = {} } = this.props
// @ts-ignore
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO

'styled-components': ({ name, type, style, props, system = [] }: StyledOptions, lib: any) => {
const tag = lib[type] || type
const funcs = getFunctions(system)
// @ts-ignore
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO

src/jsx.ts Outdated
@@ -0,0 +1,24 @@
// @ts-ignore
import * as transformJSX from 'babel-plugin-transform-react-jsx'
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO

src/jsx.ts Outdated
// @ts-ignore
import * as transformJSX from 'babel-plugin-transform-react-jsx'
// @ts-ignore
import * as babel from 'babel-standalone'
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO

src/render.ts Outdated
const renderPage = (scope: any, opts: Options) => (page: any) => {
const library = opts.library
// @ts-ignore
const Provider = themeProviders[library] || themeProviders.default
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO

src/render.ts Outdated
// @ts-ignore
const Provider = themeProviders[library] || themeProviders.default
// @ts-ignore
const getCSS = cssCreators[library] || cssCreators.default
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO

src/render.ts Outdated
.get(scope, 'theme.fonts', [])
.map((font: string) => webfont.getLinkTag(font))
// @ts-ignore
.filter(tag => !!tag)
Copy link
Owner Author

Choose a reason for hiding this comment

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

TODO

@Himenon
Copy link
Owner Author

Himenon commented Sep 25, 2018

次、rename

@Himenon Himenon changed the title [WIP] to Typescript v1 to typescript Sep 27, 2018
@Himenon Himenon merged commit 759e974 into master Sep 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant