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:
Steven 2023-08-18 09:39:55 -04:00 committed by GitHub
parent 132d3e8f97
commit cfa07f4f63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,8 +8,7 @@ export default function initializeBuildWatcher(
toggleCallback: (cb: (event: string | { data: string }) => void) => void,
position = 'bottom-right'
) {
const type = 'div' as string
const shadowHost = document.createElement(type)
const shadowHost = document.createElement('div')
const [verticalProperty, horizontalProperty] = position.split('-') as [
VerticalPosition,
HorizonalPosition