Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/lib: create cockpit.ts #20417

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
6 changes: 3 additions & 3 deletions pkg/lib/cockpit-upload-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
*/

import cockpit from 'cockpit';
import cockpit, { JsonObject } from 'cockpit';

// These are the same values used by the bridge (in channel.py)
const BLOCK_SIZE = 16 << 10; // 16kiB
Expand All @@ -44,9 +44,9 @@ export async function upload(
contents: Blob,
progress?: (bytes_sent: number) => void,
signal?: AbortSignal,
options?: cockpit.JsonObject
options?: JsonObject
) {
let close_message = null as (cockpit.JsonObject | null);
let close_message = null as (JsonObject | null);
let outstanding = 0; // for flow control
let delivered = 0; // for progress reporting

Expand Down
277 changes: 0 additions & 277 deletions pkg/lib/cockpit.d.ts

This file was deleted.