fixed some type errors

This commit is contained in:
2025-06-10 14:07:40 +02:00
parent 841446082e
commit d58be34fe5
22 changed files with 266 additions and 216 deletions

View File

@@ -3,7 +3,7 @@ import { client } from '$lib/minio';
/** @type {import('./$types').RequestHandler} */
export async function GET({ params }) {
const prefix = params.vorgang ? `${params.vorgang}/` : '';
let stream = client.listObjectsV2('tatort', prefix, false, '');
const stream = client.listObjectsV2('tatort', prefix, false, '');
const result = new ReadableStream({
start(controller) {
stream.on('data', (data) => {

View File

@@ -1,8 +1,7 @@
import { client } from '$lib/minio';
/** @type {import('./$types').RequestHandler} */
export async function GET() {
var stream = client.listObjectsV2('tatort', '', true);
const stream = client.listObjectsV2('tatort', '', true);
const result = new ReadableStream({
start(controller) {
stream.on('data', (data) => {

View File

@@ -1,5 +1,5 @@
import type { RequestHandler } from "@sveltejs/kit";
/** @type {import('./$types').RequestHandler} */
export async function GET(params) {
export async function GET(params: RequestHandler) {
console.log('GET', params);
}