Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7478a38

Browse files
committedNov 7, 2022
move default strategy to config/default
1 parent 8c94839 commit 7478a38

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎src/get/config/default.ts renamed to ‎src/get/config/default/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defaultSelectRangeStrategy } from '../range/selectRangeStrategy'
2-
import { defaultSegmentStrategy } from '../range/segmentStrategy'
1+
import { defaultSelectRangeStrategy } from './selectRangeStrategy'
2+
import { defaultSegmentStrategy } from './segmentStrategy'
33

44
const placeholder = (): void => {}
55

‎src/get/range/segmentStrategy.ts renamed to ‎src/get/config/default/segmentStrategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Range } from './types'
1+
type Range = [number, number]
22

33
const KB = 1024
44
const MB = 1024 * 1024

‎src/get/range/selectRangeStrategy.ts renamed to ‎src/get/config/default/selectRangeStrategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { RangeIndex } from './types'
1+
type RangeIndex = number
22

33
const threshold = 10
44

0 commit comments

Comments
 (0)
Please sign in to comment.