chore: remove unnecessary type cast in dev-build-watcher (#54221)
I accidentally left this type cast in from previous PR https://github.com/vercel/next.js/pull/54074 but it is unnecessary.
This commit is contained in:
parent
132d3e8f97
commit
cfa07f4f63
1 changed files with 1 additions and 2 deletions
|
@ -8,8 +8,7 @@ export default function initializeBuildWatcher(
|
||||||
toggleCallback: (cb: (event: string | { data: string }) => void) => void,
|
toggleCallback: (cb: (event: string | { data: string }) => void) => void,
|
||||||
position = 'bottom-right'
|
position = 'bottom-right'
|
||||||
) {
|
) {
|
||||||
const type = 'div' as string
|
const shadowHost = document.createElement('div')
|
||||||
const shadowHost = document.createElement(type)
|
|
||||||
const [verticalProperty, horizontalProperty] = position.split('-') as [
|
const [verticalProperty, horizontalProperty] = position.split('-') as [
|
||||||
VerticalPosition,
|
VerticalPosition,
|
||||||
HorizonalPosition
|
HorizonalPosition
|
||||||
|
|
Loading…
Reference in a new issue