chore: single line block comments (#30852)

This commit is contained in:
Daniel Dietzler 2026-08-18 17:55:26 +02:00 committed by GitHub
parent 80a90fabf3
commit 03da1ba108
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 102 additions and 294 deletions

View file

@ -113,9 +113,7 @@ export const removeAssets = async (
export type PartnerIdOptions = {
userId: string;
repository: PartnerRepository;
/**
only include partners with `inTimeline: true`
*/
/** only include partners with `inTimeline: true` */
timelineEnabled?: boolean;
};
export const getMyPartnerIds = async ({ userId, repository, timelineEnabled }: PartnerIdOptions) => {

View file

@ -391,9 +391,7 @@ export function withEdits(eb: ExpressionBuilder<DB, 'asset'>): AliasedEditAction
}
const joinDeduplicationPlugin = new DeduplicateJoinsPlugin();
/**
TODO: This should only be used for search-related queries, not as a general purpose query builder
*/
/** TODO: This should only be used for search-related queries, not as a general purpose query builder */
export function searchAssetBuilderLegacy(kysely: Kysely<DB>, options: AssetSearchBuilderOptions) {
options.withDeleted ||= !!(options.trashedAfter || options.trashedBefore || options.isOffline);

View file

@ -164,9 +164,7 @@ export const mimeTypes = {
transparentCapableExtensions.has(getFilenameExtension(filename).toLowerCase()),
isRaw: (filename: string) => isType(filename, raw),
lookup,
/**
return an extension (including a leading `.`) for a mime-type
*/
/** return an extension (including a leading `.`) for a mime-type */
toExtension,
assetType: (filename: string) => {
const contentType = lookup(filename);

View file

@ -12,9 +12,7 @@ export const triggerMap: Record<WorkflowTrigger, WorkflowType[]> = {
export const getWorkflowTriggers = () =>
Object.entries(triggerMap).map(([trigger, types]) => ({ trigger: trigger as WorkflowTrigger, types }));
/**
some types extend other types and have implied compatibility
*/
/** some types extend other types and have implied compatibility */
const inferredMap: Record<WorkflowType, WorkflowType[]> = {
[WorkflowType.AssetV1]: [],
// [WorkflowType.AssetPersonV1]: [WorkflowType.AssetV1],