Skip to content

Commit

Permalink
Refactor code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 25, 2021
1 parent 115898a commit 60de570
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 4 additions & 6 deletions types/ts3.4/unified-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ const typedSetting = {example: 'example'}

const implicitlyTypedPlugin = (settings?: ExamplePluginSettings) => {}

const transformerPlugin = (settings?: ExamplePluginSettings) => (
tree: Node,
file: VFile
) => ({
type: 'random node'
})
const transformerPlugin =
(settings?: ExamplePluginSettings) => (tree: Node, file: VFile) => ({
type: 'random node'
})

const pluginWithTwoSettings = (
processor?: Processor,
Expand Down
10 changes: 4 additions & 6 deletions types/ts4.0/unified-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ const typedSetting = {example: 'example'}

const implicitlyTypedPlugin = (settings?: ExamplePluginSettings) => {}

const transformerPlugin = (settings?: ExamplePluginSettings) => (
tree: Node,
file: VFile
) => ({
type: 'random node'
})
const transformerPlugin =
(settings?: ExamplePluginSettings) => (tree: Node, file: VFile) => ({
type: 'random node'
})

const pluginWithTwoSettings = (
processor?: Processor,
Expand Down

0 comments on commit 60de570

Please sign in to comment.