snowtrack / snowfs

Use of a banned type detected JS-0296
Anti-pattern
Major
3 years ago3 years old
Don't use {} as a type
1227   * @param userData Custom data that is attached to the commit data. The data must be JSON.stringifyable.
1228   * @returns        New commit object.
1229   */
1230  async createCommit(index: Index, message: string, opts?: {allowEmpty?: boolean}, tags?: string[], userData?: {}): Promise<Commit> {1231    let tree: TreeDir = null;
1232    let commit: Commit = null;
1233    if (opts?.allowEmpty) {