Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit b89373e

Browse files
committed
import DataResolvers into PasteStore.js
1 parent b84b329 commit b89373e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/struct/DataResolvers.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
const PastebinError = require("./PastebinError")
22

3-
module.exports = class Resolvers {
3+
module.exports = class DataResolvers {
44
constructor() { throw new PastebinError() }
55

6-
/**
7-
* The content of a paste. If an object, it will be stringified as JSON. If a Buffer or a primitive value, it will be converted with `String()`
8-
* @typedef {*} ContentResolvable
9-
*/
106
static resolveContent(value) {
117
if (!value)
128
throw new PastebinError("Paste content is invalid.")

src/struct/stores/PasteStore.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
const DataResolvers = require("../DataResolvers")
12
const PastebinClient = require("../PastebinClient")
23
const PastebinError = require("../PastebinError")
34
const Paste = require("../Paste")

0 commit comments

Comments
 (0)