packages/relay-runtime/util/generateID.js (6 lines of code) (raw):

/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow strict * @format */ // flowlint ambiguous-object-type:error 'use strict'; let id = 100000; function generateID(): number { return id++; } module.exports = generateID;