mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 11:23:10 +02:00
Make any typing linting opt-out instead of opt-in (#6542)
# Description of Changes Reconfigure linting of `any` type to an opt-out instead of an opt-in strategy now that we're close enough to everything supporting it. Also slightly expands the scope of things included in the linting.
This commit is contained in:
@@ -99,12 +99,12 @@ Object.defineProperty(globalThis, "crypto", {
|
||||
subtle: {
|
||||
digest: vi
|
||||
.fn()
|
||||
.mockImplementation(async (_algorithm: string, _data: any) => {
|
||||
.mockImplementation(async (_algorithm: string, _data: BufferSource) => {
|
||||
// Always return the mock hash buffer regardless of input
|
||||
return mockHashBuffer.slice();
|
||||
}),
|
||||
},
|
||||
getRandomValues: vi.fn().mockImplementation((array: any) => {
|
||||
getRandomValues: vi.fn().mockImplementation((array: Uint8Array) => {
|
||||
// Mock getRandomValues if needed
|
||||
for (let i = 0; i < array.length; i++) {
|
||||
array[i] = Math.floor(Math.random() * 256);
|
||||
|
||||
Reference in New Issue
Block a user